Repository navigation
Add Native Auth V2 authorize scopes and claims, Fixes AB#3784690 #2619
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
Closed
Disha Janardhan (djanardhan98)
wants to merge
5
commits into
djanardhan/native-auth-v2-unified-errors
from
djanardhan/native-auth-v2-authorize-inputs
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
92ece8f
Port Native Auth V2 entry scopes and claims to Android
djanardhan98 12a5e97
Correct unified-error password assertions and pair repaired Common
djanardhan98 f92d6c0
Pair validated canonical OIDC scope Common update
djanardhan98 5787275
Keep authorize-inputs PR stacked on repaired unified-errors base
djanardhan98 4b1a2ad
Merge unified-error base into Native Auth V2 authorize inputs
djanardhan98 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
Submodule common
updated
14 files
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -116,14 +116,6 @@ class CodeRequiredStateV2 internal constructor( | |
| methodName = "${TAG}.submitCode(code: String)" | ||
| ) | ||
| val state = continuationState ?: return invalidState() | ||
| if (code.isEmpty()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was this removed in this PR? |
||
| return NativeAuthErrorV2( | ||
| errorType = ErrorTypes.INVALID_CODE, | ||
| errorMessage = "Code cannot be empty.", | ||
| correlationId = correlationId, | ||
| scenario = scenario | ||
| ) | ||
| } | ||
| if (scenario == NativeAuthFlowScenarioV2.UNKNOWN) { | ||
| return invalidState() | ||
| } | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -127,14 +127,6 @@ class MFAVerificationRequiredStateV2 internal constructor( | |
| methodName = "${TAG}.submitChallenge(challenge: String)" | ||
| ) | ||
| val state = continuationState ?: return invalidState() | ||
| if (challenge.isEmpty()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why was this removed in this PR? |
||
| return NativeAuthErrorV2( | ||
| errorType = ErrorTypes.INVALID_CODE, | ||
| errorMessage = "Challenge cannot be empty.", | ||
| correlationId = correlationId, | ||
| scenario = scenario | ||
| ) | ||
| } | ||
| return withContext(Dispatchers.IO) { | ||
| try { | ||
| val parameters = CommandParametersAdapter.createNativeAuthV2SubmitMFAChallengeCommandParameters( | ||
|
|
||
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These actually need to be removed they can't be sent, if used by v2 same class, we need to make another class for v2 specifically, I am not sure if it even has any parameters.