feat :Add partial support for PAR auth flow#967
Merged
Conversation
|
|
||
| import android.content.Context | ||
| import android.net.Uri | ||
| import android.util.Log |
Contributor
There was a problem hiding this comment.
Uri and Log can be removed not used.
| private var requestCode = 0 | ||
|
|
||
| private companion object { | ||
| private val TAG = "PARCodeManager" |
Contributor
There was a problem hiding this comment.
TAG can be removed not used.
| @@ -0,0 +1,65 @@ | |||
| package com.auth0.android.provider | |||
Contributor
There was a problem hiding this comment.
This manager doesn't survive Activity recreation. If the user rotates the device while the browser is open, managerInstance is lost and the callback silently fails.
OAuthManager handles this via toState() / onRestoreInstanceState(). PARCodeManager has no equivalent.
| ) | ||
|
|
||
| managerInstance = manager | ||
| manager.startAuthentication(context, 110) |
Contributor
There was a problem hiding this comment.
private const val AUTH_REQUEST_CODE = 110
also used in line 607
utkrishtsahu
requested changes
May 15, 2026
utkrishtsahu
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
adds support for Pushed Authorization Request (PAR) flows where the backend-for-frontend (BFF) handles the /par and /token endpoints while the SDK manages the browser-based authorization.
####Usage
Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.
This change adds unit test coverage
This change adds integration test coverage
This change has been tested on the latest version of the platform/language or why not
Checklist
I have read the Auth0 general contribution guidelines
I have read the Auth0 Code of Conduct
All existing and new tests complete without errors