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

Use OTP grant for magic links [SDK-2576] #667

Merged
merged 2 commits into from
May 20, 2021
Merged

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented May 19, 2021

Changes

This PR uses the http://auth0.com/oauth/grant-type/passwordless/otp grant when performing passwordless login with magic links. It was previously using the deprecated http://auth0.com/oauth/legacy/grant-type/ro grant. It will still use that grant if the OIDC Conformant mode is not enabled.

References

Fixes #664

Testing

This change has been tested manually using an iOS simulator.

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

code: passcode,
audience: self.options.audience,
scope: self.options.scope,
parameters: self.options.parameters)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@lbalmaceda lbalmaceda left a comment

Choose a reason for hiding this comment

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

Is this class covered by tests? The one I could find is PasswordlessInteractorSpec but not sure is the same. If already covered by tests, I'd expect a new test that checks the grant type (RO vs OTP) depending on the value passed for OIDC conformance. Otherwise, let me know and I'll review it again.

@Widcket Widcket changed the title Use OTP grant for magic links Use OTP grant for magic links [SDK-2576] May 20, 2021
@Widcket
Copy link
Contributor Author

Widcket commented May 20, 2021

@lbalmaceda the class PasswordlessLinkTransaction does not have tests, however a class that uses it has. So I added some tests for that class.

@Widcket Widcket merged commit 99ba16e into master May 20, 2021
@Widcket Widcket deleted the fix/passwordless-magic-link branch May 20, 2021 09:48
@Widcket Widcket added this to the vNext milestone May 20, 2021
@Widcket Widcket mentioned this pull request May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS native swift app + Lock.swift + passwordless + magic link
2 participants