Skip to content

Commit 44e8c99

Browse files
committed
Fix crashes on login with SAML, Oauth and CAS
1 parent 34f58c8 commit 44e8c99

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/chat/rocket/android/authentication/loginoptions/presentation/LoginOptionsPresenter.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,22 @@ class LoginOptionsPresenter @Inject constructor(
6868
fun toLoginWithEmail() = navigator.toLogin(currentServer)
6969

7070
fun authenticateWithOauth(oauthToken: String, oauthSecret: String) {
71+
setupConnectionInfo(currentServer)
7172
credentialToken = oauthToken
7273
credentialSecret = oauthSecret
7374
loginMethod = AuthenticationEvent.AuthenticationWithOauth
7475
doAuthentication(TYPE_LOGIN_OAUTH)
7576
}
7677

7778
fun authenticateWithCas(casToken: String) {
79+
setupConnectionInfo(currentServer)
7880
credentialToken = casToken
7981
loginMethod = AuthenticationEvent.AuthenticationWithCas
8082
doAuthentication(TYPE_LOGIN_CAS)
8183
}
8284

8385
fun authenticateWithSaml(samlToken: String) {
86+
setupConnectionInfo(currentServer)
8487
credentialToken = samlToken
8588
loginMethod = AuthenticationEvent.AuthenticationWithSaml
8689
doAuthentication(TYPE_LOGIN_SAML)

0 commit comments

Comments
 (0)