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

feat: self-bundle is a permitted resume callback #838

Conversation

alexander-joinlane
Copy link

@alexander-joinlane alexander-joinlane commented Apr 3, 2024

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

When resuming the flow, some urls can be registered by the application (ex. www.my-app.com can be registered to open ), but in some cases a redirect proxy must be used like in the case of B2B2C Auth0 consumers. Such a proxy could redirect directly into the app using the identifier syntax.

In accordance with "Getting Started" documentation which advises the use of "BUNDLE_IDENTIFIER.auth0://" schema urls we conditionally pass a direct and anticipated match.

More simply, if the outgoing redirect is a proxy, incoming redirects could go directly into the app.

📎 References

N/A

🎯 Testing

I was able to use xcode to test.

image

When resuming the flow, some urls can be registered by the
application (ex. www.my-app.com can be registered to open
<My App>), but in some cases a redirect proxy must be used
like in the case of B2B2C Auth0 consumers. Such a proxy could
redirect directly into the app using the identifier syntax.

In accordance with "Getting Started" documentation which
advises the use of "BUNDLE_IDENTIFIER.auth0://" schema urls
we conditionally pass a direct and anticipated match.

More simply, if the outgoing redirect is a proxy, incoming
redirects could go directly into the app.
@alexander-joinlane alexander-joinlane requested a review from a team as a code owner April 3, 2024 19:55
Comment on lines +17 to +19
userAgent = SpyUserAgent()
handler = SpyGrant()
loggerOutput = SpyOutput()
Copy link
Author

Choose a reason for hiding this comment

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

note: reset mocks between test

@@ -50,6 +54,17 @@ class LoginTransactionSpec: QuickSpec {
expect(transaction.userAgent).to(beNil())
}

it("should succeed when using bundle schema") {
Copy link
Author

Choose a reason for hiding this comment

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

note: roughly identical in implementation to "can handle"

@desusai7
Copy link
Contributor

desusai7 commented May 6, 2024

Hi @alexander-joinlane,

Thank you for raising this PR and bringing about this to our notice. We are tackling this as part of #850 , hence closing this PR.

@desusai7 desusai7 closed this May 6, 2024
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.

None yet

3 participants