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 flag to prefer OAuth 2.0 endpoints for authentication #378

Closed
wants to merge 3 commits into from

Conversation

lbalmaceda
Copy link
Contributor

@lbalmaceda lbalmaceda commented Dec 21, 2016

This will try to use the new pipeline endpoints /oauth/token and /userinfo instead of the legacy ones. The dashboard must be configured to use the OAuth 2.0 API.

Lock lock = Lock.newBuilder(auth0, callback)
      .setLegacyModeEnabled(true)
      .build(this);

This PR depends on auth0/Auth0.Android#57 being merged and released.

@lbalmaceda lbalmaceda changed the title Add flag to prefer /oauth/token endpoints for authentication Add flag to prefer OAuth 2.0 endpoints for authentication Dec 21, 2016
* @param use if Lock will use the OAuth 2.0 API or the previous implementation.
* @return the current Builder instance
*/
public Builder useOAuth2(boolean use) {
Copy link
Member

Choose a reason for hiding this comment

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

Let's leave passwordless out of this for now

@lbalmaceda
Copy link
Contributor Author

I'm closing this PR as the flag will be set from the Auth0 instance. PR -> auth0/Auth0.Android#62

@lbalmaceda lbalmaceda closed this Dec 28, 2016
@lbalmaceda lbalmaceda deleted the pipeline-switch branch May 4, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants