Skip to content

Commit

Permalink
Changing Client to Application where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Apr 25, 2018
1 parent 993645a commit 2621683
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
## [3.5.0](https://github.com/auth0/wp-auth0/tree/3.5.0) (2018-01-25)
[Full Changelog](https://github.com/auth0/wp-auth0/compare/3.4.0...3.5.0)

**Please note:** This is a major update that requires changes to your Auth0 Dashboard to be completed. You can save a new [API token](https://auth0.com/docs/api/management/v2/tokens#get-a-token-manually) in your Basic settings in wp-admin before upgrading and the changes will be made automatically during the update. Otherwise, after upgrading, please review your [Client Advanced Settings](https://auth0.com/docs/cms/wordpress/configuration#client-setup), specifically your Grant Types, and [authorize your Client for the Management API](https://auth0.com/docs/cms/wordpress/configuration#authorize-the-client-for-the-management-api).
**Please note:** This is a major update that requires changes to your Auth0 Dashboard to be completed. You can save a new [API token](https://auth0.com/docs/api/management/v2/tokens#get-a-token-manually) in your Basic settings in wp-admin before upgrading and the changes will be made automatically during the update. Otherwise, after upgrading, please review your [Application Advanced Settings](https://auth0.com/docs/cms/wordpress/configuration#application-setup), specifically your Grant Types, and [authorize your Client for the Management API](https://auth0.com/docs/cms/wordpress/configuration#authorize-the-client-for-the-management-api).

**Changed**
- updating CDN URLs for Lock and Auth.js [\#365](https://github.com/auth0/wp-auth0/pull/365) ([joshcanhelp](https://github.com/joshcanhelp))
Expand Down
8 changes: 4 additions & 4 deletions lib/WP_Auth0_DBManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function install_db( $version_to_install = null, $app_token = '' ) {
} else {
WP_Auth0_ErrorManager::insert_auth0_error( __METHOD__, sprintf(
__( 'Unable to automatically create Client Grant. Please go to your Auth0 Dashboard '
. 'and authorize your Client %s for management API scopes %s.',
. 'and authorize your Application %s for management API scopes %s.',
'wp-auth0' ),
$options->get( 'client_id' ),
implode( ', ', WP_Auth0_Api_Client::get_required_scopes() )
Expand Down Expand Up @@ -282,7 +282,7 @@ public function install_db( $version_to_install = null, $app_token = '' ) {
} else {
WP_Auth0_ErrorManager::insert_auth0_error( __METHOD__, sprintf(
__( 'Unable to automatically update Client Grant Type. Please go to your Auth0 Dashboard '
. 'and add Client Credentials to your Client settings > Advanced > Grant Types for ID %s ',
. 'and add Client Credentials to your Application settings > Advanced > Grant Types for ID %s ',
'wp-auth0' ),
$options->get( 'client_id' )
) );
Expand Down Expand Up @@ -376,9 +376,9 @@ public function notice_failed_client_grant() {
<p><strong>2.</strong>
<a href="https://auth0.com/docs/cms/wordpress/configuration#client-setup"
target="_blank"><?php
_e( 'Review your Client advanced settings', 'wp-auth0' ) ?></a>,
_e( 'Review your Application advanced settings', 'wp-auth0' ) ?></a>,
<?php _e( 'specifically the Grant Types, and ', 'wp-auth0' ) ?>
<a href="https://auth0.com/docs/cms/wordpress/configuration#authorize-the-client-for-the-management-api"
<a href="https://auth0.com/docs/cms/wordpress/configuration#authorize-the-application-for-the-management-api"
target="_blank"><?php
_e( 'authorize your client for the Management API', 'wp-auth0' ) ?></a>
<?php _e( 'to manually complete the setup.', 'wp-auth0' ) ?>
Expand Down
4 changes: 2 additions & 2 deletions lib/WP_Auth0_LoginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ public function redirect_login() {
}

/**
* Secondary login flow, Implicit Grant
* Client should be of type "Single Page App" for this flow
* Secondary login flow, Implicit Grant.
* Application type must be set to "Single Page App" to use this flow.
*
* @throws WP_Auth0_LoginFlowValidationException - OAuth login flow errors.
* @throws WP_Auth0_BeforeLoginException - Errors encountered during the auth0_before_login action.
Expand Down

0 comments on commit 2621683

Please # to comment.