Skip to content

Commit

Permalink
fix: Remove autologin in Keycloak in E2EI [WPB-7061] (#2777)
Browse files Browse the repository at this point in the history
Co-authored-by: boris <[email protected]>
Co-authored-by: Oussama Hassine <[email protected]>
  • Loading branch information
3 people authored Mar 12, 2024
1 parent 724816c commit 07832e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ class OAuthUseCase(
AuthorizationRequest.Scope.PROFILE,
AuthorizationRequest.Scope.OFFLINE_ACCESS
).setClaims(JSONObject(claims.toString()))
.setPrompt(AuthorizationRequest.Prompt.LOGIN)
.build()

private fun AuthorizationRequest.Builder.setCodeVerifier(): AuthorizationRequest.Builder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ class GetE2EICertificateViewModel @Inject constructor(
.fold({
enrollmentResultFlow.emit(Either.Left(it))
}, {
if (it is E2EIEnrollmentResult.Initialized) requestOAuthFlow.emit(it)
else enrollmentResultFlow.emit(Either.Right(it))
requestOAuthFlow.emit(it)
})
}
}
Expand Down

0 comments on commit 07832e7

Please sign in to comment.