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

Added AuthProvider implementation #230

Merged
merged 5 commits into from
Mar 22, 2024
Merged

Added AuthProvider implementation #230

merged 5 commits into from
Mar 22, 2024

Conversation

lalwani
Copy link
Collaborator

@lalwani lalwani commented Mar 20, 2024

Added AuthProvider to initiate the authentication flow by performing PAR if the prefill information is available otherwise directly invoke the sso link to perform SSO based on the app prioritization or inApp (custom tabs) flow.
When the sso flow is complete we receive an authCode. Depending on the type of auth requested we take the next step

  • PKCE: perform token exchange via proof key code exchange protocol using the authCode received
  • AuthCode: return the authCode in the UberToken object back to the caller

Added a couple of shadow classes to help with unit testing and added unit tests for AuthProvider and PKCEGeneratorImpl

@lalwani lalwani changed the base branch from ssolink to 2.x March 22, 2024 16:25
@lalwani lalwani merged commit fa80982 into 2.x Mar 22, 2024
13 checks passed
@lalwani lalwani deleted the impl branch March 26, 2024 07:07
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.

2 participants