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

Add support for custom URL sessions to Web Auth [SDK-2906] #556

Merged
merged 1 commit into from
Nov 30, 2021

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Nov 29, 2021

Changes

This PR allows passing a custom URLSession to webAuth(). That URLSession is then used for the calls to the Authentication API that are made as part of the Web Auth flow (call to exchange auth code for credentials, and call to fetch the JWKS). This makes it possible to set custom headers for those calls.

References

Fixes #503

Testing

The changes have been tested manually in an iOS 15.0 simulator (iPhone 13) and macOS 11.6.1, using the respective playground apps.

Screen Shot 2021-11-29 at 14 41 12

Also, unit tests were added for the initializers.

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

Checklist

@Widcket Widcket changed the base branch from master to beta November 29, 2021 19:04
@Widcket Widcket added the review:small Small review label Nov 29, 2021
@Widcket Widcket changed the title Add support for custom URL sessions to Web Auth Add support for custom URL sessions to Web Auth [SDK-2906] Nov 29, 2021
@Widcket Widcket marked this pull request as ready for review November 29, 2021 23:40
@Widcket Widcket requested a review from a team as a code owner November 29, 2021 23:40
@Widcket Widcket merged commit 8ab2408 into beta Nov 30, 2021
@Widcket Widcket deleted the v2/webauth-urlsession branch November 30, 2021 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants