-
Notifications
You must be signed in to change notification settings - Fork 6
Authenticator: Support Multiple OAuthUserConfigurations #930
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
base: v.next
Are you sure you want to change the base?
Conversation
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.
@eri9000 looks ok overall. Some minor comments
return if (oAuthUserConfiguration?.canBeUsedForUrl(challenge.requestUrl) == true) { | ||
val oAuthUserCredential = oAuthUserConfiguration.handleOAuthChallenge { _pendingOAuthUserSignIn.value = it } | ||
.also { | ||
// At this point we have suspended until the OAuth workflow is complete, so |
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.
is it not worth preserving this comment ?
@@ -46,7 +46,7 @@ internal fun OAuthAuthenticator( | |||
authenticatorState: AuthenticatorState, | |||
onPendingOAuthUserSignIn: ((OAuthUserSignIn) -> Unit)?, | |||
) { | |||
if (authenticatorState.oAuthUserConfiguration?.redirectUrl == DEFAULT_REDIRECT_URI) { | |||
if (oAuthPendingSignIn.oAuthUserConfiguration.redirectUrl == DEFAULT_REDIRECT_URI) { |
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.
can you explain this change?
Related to issue: #https://devtopia.esri.com/runtime/kotlin/issues/5297
Summary of changes:
AuthenticatorState
Pre-merge Checklist