-
Notifications
You must be signed in to change notification settings - Fork 231
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
Document Legacy Grant Types & Method deprecations #126
Conversation
660c4b2
to
0a67b43
Compare
Should |
0a67b43
to
6c66dda
Compare
Auth0/Authentication.swift
Outdated
@@ -223,6 +224,7 @@ public protocol Authentication: Trackable, Loggable { | |||
|
|||
- returns: an authentication request that will yield Auth0 user credentials after creating the user. | |||
*/ | |||
@available(*, deprecated, message: "see createUser(email: String, username: String?, password: String, connection: String, userMetadata: [String: Any]?)") |
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.
This is not enough since we should tell them to chain the calls right? Why dont we add more info in the comment?
Auth0/Authentication.swift
Outdated
@@ -251,6 +253,7 @@ public protocol Authentication: Trackable, Loggable { | |||
- parameter parameters: additional authentication parameters added for Web link. Ignored in other types | |||
|
|||
- returns: a request | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
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.
Add info of what grant type needs to be enabled and a link to the docs about grant type
Auth0/Authentication.swift
Outdated
@@ -278,6 +281,7 @@ public protocol Authentication: Trackable, Loggable { | |||
- parameter connection: name of the passwordless connection. By default is 'sms' | |||
|
|||
- returns: a request | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
Auth0/Authentication.swift
Outdated
@@ -311,7 +315,7 @@ public protocol Authentication: Trackable, Loggable { | |||
- parameter token: token obtained by authenticating the user | |||
|
|||
- returns: a request that will yield user information | |||
- important: If you are using an OIDC Conformant client please see `userClaimInfo` | |||
- warning: for OIDC-conformant clients please use `userInfo(withAccessToken accessToken: String)` |
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.
Fully deprecate the method
@@ -358,6 +362,7 @@ public protocol Authentication: Trackable, Loggable { | |||
- parameter parameters: additional parameters sent during authentication | |||
|
|||
- returns: a request that will yield Auth0 user's credentials | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
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.
Add info of what grant type needs to be enabled and a link to the docs about grant type
Auth0/Authentication.swift
Outdated
@@ -682,6 +687,7 @@ public extension Authentication { | |||
- parameter parameters: additional authentication parameters added for Web link. Ignored in other types | |||
|
|||
- returns: a request | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
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.
Add info of what grant type needs to be enabled and a link to the docs about grant type
Auth0/Authentication.swift
Outdated
@@ -710,6 +716,7 @@ public extension Authentication { | |||
- parameter connection: name of the passwordless connection. By default is 'sms' | |||
|
|||
- returns: a request | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
@@ -740,6 +747,7 @@ public extension Authentication { | |||
- parameter parameters: additional parameters sent during authentication | |||
|
|||
- returns: a request that will yield Auth0 user's credentials | |||
- warning: disabled for OIDC-conformant clients, an alternative will be added in a future release |
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.
Remove this warning
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.
Add info of what grant type needs to be enabled and a link to the docs about grant type
Auth0/Authentication.swift
Outdated
@@ -83,6 +83,7 @@ public protocol Authentication: Trackable, Loggable { | |||
- returns: authentication request that will yield Auth0 User Credentials | |||
- seeAlso: Credentials | |||
*/ | |||
@available(*, deprecated, message: "see login(usernameOrEmail username: String, password: String, realm: String, audience: String?, scope: String?)") | |||
// swiftlint:disable:next function_parameter_count | |||
func login(usernameOrEmail username: String, password: String, multifactorCode: String?, connection: String, scope: String, parameters: [String: Any]) -> Request<Credentials, AuthenticationError> |
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.
Add info of what grant type needs to be enabled and a link to the docs about grant type
6bc7066
to
a9375e8
Compare
a9375e8
to
f8ff086
Compare
All good @cocojoe |
Warnings added