Skip to content

Commit

Permalink
Update AuthenticationActivity.kt (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco authored Dec 9, 2024
1 parent b580258 commit feca30c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ abstract class AuthenticationViewModel : ViewModel() {
discoveryService = DiscoveryService(context, authConfig)

val oAuth2Data = checkAppConfigOAuthType(discoveryService, endpoint)
val authType = oAuth2Data?.authType
val configAuthType = oAuth2Data?.authType

if (authType.isNullOrEmpty() || authType.lowercase() == IdentityProvider.KEYCLOAK.value()) {
if (configAuthType.isNullOrEmpty() || configAuthType.lowercase() == IdentityProvider.KEYCLOAK.value()) {
val authType = withContext(Dispatchers.IO) { discoveryService.getAuthType(endpoint) }
onResult(authType, oAuth2Data)
} else {
Expand Down

0 comments on commit feca30c

Please sign in to comment.