Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new method to perform an auth code exchange #131

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

joshcanhelp
Copy link
Contributor

@joshcanhelp joshcanhelp commented Oct 1, 2018

Add the exchange_auth_code_for_tokens method to Auth0::Api::AuthenticationEndpoints which takes an authorization code and a redirect URI and exchanges them for the appropriate token(s).

@joshcanhelp joshcanhelp added this to the v4-Next milestone Oct 1, 2018
@joshcanhelp joshcanhelp force-pushed the add-auth-code-exchange branch 5 times, most recently from 53c4bca to 8b0d75d Compare October 12, 2018 19:50
@joshcanhelp joshcanhelp changed the title Add auth_code_exchange method to perform an code exchange Add new method to perform an auth code exchange Oct 12, 2018
@joshcanhelp joshcanhelp force-pushed the add-auth-code-exchange branch 2 times, most recently from 9817546 to f5d6f9b Compare October 12, 2018 20:11
code: code,
redirect_uri: redirect_uri
}
AccessToken.from_response post('/oauth/token', request_params)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@joshcanhelp joshcanhelp merged commit ab0e2f4 into master Oct 15, 2018
@joshcanhelp joshcanhelp deleted the add-auth-code-exchange branch October 16, 2018 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants