-
Notifications
You must be signed in to change notification settings - Fork 126
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
Conversation
@@ -153,8 +171,11 @@ public ParameterBuilder setAudience(@NonNull String audience) { | |||
* | |||
* @param device a device name | |||
* @return itself | |||
* | |||
* @deprecated TODO |
There was a problem hiding this comment.
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-
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
auth0/src/main/java/com/auth0/android/request/internal/BaseAuthenticationRequest.java
Outdated
Show resolved
Hide resolved
…henticationRequest.java Co-authored-by: Luciano Balmaceda <balmacedaluciano@gmail.com>
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
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors