From b067a29f2f6a3ed1c745b340484cb26229c55e3f Mon Sep 17 00:00:00 2001 From: Amanpal Singh <87360222+aman-alfresco@users.noreply.github.com> Date: Tue, 9 Jul 2024 10:52:19 +0530 Subject: [PATCH] auth0 integrated --- .../kotlin/com/alfresco/auth/activity/LoginViewModel.kt | 8 ++++---- auth/src/main/res/values/strings.xml | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/auth/src/main/kotlin/com/alfresco/auth/activity/LoginViewModel.kt b/auth/src/main/kotlin/com/alfresco/auth/activity/LoginViewModel.kt index b62629464..853f9bfe0 100644 --- a/auth/src/main/kotlin/com/alfresco/auth/activity/LoginViewModel.kt +++ b/auth/src/main/kotlin/com/alfresco/auth/activity/LoginViewModel.kt @@ -99,7 +99,7 @@ class LoginViewModel( } fun startEditing() { - authConfigEditor = AuthConfigEditor() + authConfigEditor = AuthConfigEditor(context) authConfigEditor.reset(authConfig) } @@ -304,7 +304,7 @@ class LoginViewModel( } } - class AuthConfigEditor { + class AuthConfigEditor(val context: Context) { private lateinit var source: AuthConfig private val _changed = MediatorLiveData() @@ -323,11 +323,11 @@ class LoginViewModel( val listAuthType = listOf( OptionsModel( id = AuthType.PKCE.value, - name = "Keycloak", + name = context.getString(R.string.text_auth_keycloak), ), OptionsModel( id = AuthType.OIDC.value, - name = "Auth0", + name = context.getString(R.string.text_auth_oidc_auth0), ), ) diff --git a/auth/src/main/res/values/strings.xml b/auth/src/main/res/values/strings.xml index cf41e8f24..2e9193981 100644 --- a/auth/src/main/res/values/strings.xml +++ b/auth/src/main/res/values/strings.xml @@ -81,6 +81,8 @@ Ok Close Back + Keycloak + Auth0