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

Deprecate Legacy Authentication APIs #391

Merged
merged 4 commits into from
Dec 17, 2020
Merged

Conversation

jimmyjames
Copy link
Contributor

Changes

Deprecates methods and classes associated with the legacy Auth0 Authentication APIs.

Classes deprecated:

  • Delegation
  • DelegationRequest

Methods deprecated:

  • AuthenticationAPIClient#loginWithOAuthAccessToken(@NonNull String token, @NonNull String connection)
  • AuthenticationAPIClient#delegationWithIdToken(@NonNull String idToken)
  • AuthenticationAPIClient#delegationWithRefreshToken(@NonNull String refreshToken)
  • AuthenticationAPIClient#delegationWithIdToken(@NonNull String idToken, @NonNull String apiType)
  • AuthenticationAPIClient#delegation()
  • ParameterBuilder#setAccessToken(@NonNull String accessToken)
  • SignupRequest#setAccessToken(@NonNull String accessToken)
  • AuthenticationRequest#setAccessToken(@NonNull String accessToken)
  • BaseAuthenticationRequest#setAccessToken(@NonNull String accessToken)

Checklist

@jimmyjames jimmyjames added this to the v1-Next milestone Dec 16, 2020
@jimmyjames jimmyjames marked this pull request as ready for review December 17, 2020 16:53
@jimmyjames jimmyjames requested a review from a team as a code owner December 17, 2020 16:53
@@ -153,8 +171,11 @@ public ParameterBuilder setAudience(@NonNull String audience) {
*
* @param device a device name
* @return itself
*
* @deprecated TODO
Copy link
Contributor

Choose a reason for hiding this comment

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

Reason is RO being legacy API being removed in the next major
That's RO https://auth0.com/docs/api/authentication#database-ad-ldap-active-

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a new commit to add this.

@@ -63,11 +70,22 @@
public static final String SCOPE_OPENID = "openid";
public static final String SCOPE_OFFLINE_ACCESS = "openid offline_access";

/**
* @deprecated The {@code id_token} parameter is only used when making requests to the legacy
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd link to https://auth0.com/docs/api/authentication#database-ad-ldap-active- as you did in others.

Also, DEVICE constant is still here. Should go away with ID token, same reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a new commit to add the link and also deprecate the DEVICE constant

…henticationRequest.java

Co-authored-by: Luciano Balmaceda <balmacedaluciano@gmail.com>
@lbalmaceda lbalmaceda merged commit 10ed500 into master Dec 17, 2020
@lbalmaceda lbalmaceda modified the milestones: v1-Next, 1.30.0 Dec 17, 2020
@lbalmaceda lbalmaceda deleted the deprecate-legacy-apis branch January 20, 2021 09:53
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.

None yet

2 participants