-
Notifications
You must be signed in to change notification settings - Fork 301
[various] Allow resuming pending authorization after activity recreation on Android #669
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
Open
moritz-j
wants to merge
8
commits into
MaikuB:master
Choose a base branch
from
BrickmakersGmbH:fix/android_resume_auth
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0d93e0c
store pending authorization
moritz-j e5cc921
handle resuming pending authorization
moritz-j 064c21e
add no-ops to ios and macos plugins
moritz-j 0b713d3
expose resume through method channel
moritz-j ca24633
add auth resume to example app
moritz-j f812349
make resume test time zone agnostic
moritz-j 4f3d05a
move error handling inward to capture correct error code
moritz-j d593a20
Merge branch 'master' into fix/android_resume_auth
moritz-j File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
1 change: 1 addition & 0 deletions
1
flutter_appauth_platform_interface/lib/flutter_appauth_platform_interface.dart
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
32 changes: 32 additions & 0 deletions
32
flutter_appauth_platform_interface/lib/src/authorization_resume_response.dart
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import 'authorization_response.dart'; | ||
| import 'authorization_token_response.dart'; | ||
|
|
||
| /// The result of resuming a pending authorization result that the native | ||
| /// platform received while no Dart call was awaiting it. | ||
| /// | ||
| /// Depending on whether the original authorization flow was started with | ||
| /// `authorize()` or `authorizeAndExchangeCode()`, this is either | ||
| /// [AuthorizationResumeResponseAuthorize] or | ||
| /// [AuthorizationResumeResponseToken]. | ||
| sealed class AuthorizationResumeResponse { | ||
| const factory AuthorizationResumeResponse.authorize( | ||
| AuthorizationResponse response, | ||
| ) = AuthorizationResumeResponseAuthorize; | ||
|
|
||
| const factory AuthorizationResumeResponse.token( | ||
| AuthorizationTokenResponse response, | ||
| ) = AuthorizationResumeResponseToken; | ||
| } | ||
|
|
||
| class AuthorizationResumeResponseAuthorize | ||
| implements AuthorizationResumeResponse { | ||
| final AuthorizationResponse response; | ||
|
|
||
| const AuthorizationResumeResponseAuthorize(this.response); | ||
| } | ||
|
|
||
| class AuthorizationResumeResponseToken implements AuthorizationResumeResponse { | ||
| final AuthorizationTokenResponse response; | ||
|
|
||
| const AuthorizationResumeResponseToken(this.response); | ||
| } |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.