Skip to content

Commit

Permalink
Change token exchange redirect URL to match what was sent for auth code
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed May 11, 2018
1 parent 014529c commit 01bbb7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WP_Auth0_LoginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function redirect_login() {
// Exchange authorization code for an access token.
$exchange_resp = WP_Auth0_Api_Client::get_token(
$domain, $client_id, $client_secret, 'authorization_code', array(
'redirect_uri' => home_url(),
'redirect_uri' => $this->a0_options->get_wp_auth0_url(),
'code' => $this->query_vars( 'code' ),
)
);
Expand Down

0 comments on commit 01bbb7e

Please sign in to comment.