From feca30ce659c4b5a37141e2b1a33f6afcc615be6 Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:31:59 +0530 Subject: [PATCH] Update AuthenticationActivity.kt (#87) --- .../main/java/com/alfresco/auth/ui/AuthenticationActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/src/main/java/com/alfresco/auth/ui/AuthenticationActivity.kt b/auth/src/main/java/com/alfresco/auth/ui/AuthenticationActivity.kt index e864812..c2c183f 100644 --- a/auth/src/main/java/com/alfresco/auth/ui/AuthenticationActivity.kt +++ b/auth/src/main/java/com/alfresco/auth/ui/AuthenticationActivity.kt @@ -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 {