Skip to content

Commit

Permalink
auth0 integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco committed Jul 9, 2024
1 parent 93ccf8e commit b067a29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class LoginViewModel(
}

fun startEditing() {
authConfigEditor = AuthConfigEditor()
authConfigEditor = AuthConfigEditor(context)
authConfigEditor.reset(authConfig)
}

Expand Down Expand Up @@ -304,7 +304,7 @@ class LoginViewModel(
}
}

class AuthConfigEditor {
class AuthConfigEditor(val context: Context) {
private lateinit var source: AuthConfig
private val _changed = MediatorLiveData<Boolean>()

Expand All @@ -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),
),
)

Expand Down
2 changes: 2 additions & 0 deletions auth/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
<string name="auth_login_app_ok_button">Ok</string>
<string name="accessibility_text_close">Close</string>
<string name="accessibility_text_back">Back</string>
<string name="text_auth_keycloak">Keycloak</string>
<string name="text_auth_oidc_auth0">Auth0</string>


</resources>

0 comments on commit b067a29

Please sign in to comment.