Skip to content
Snippets Groups Projects
Commit ec316d59 authored by Taras's avatar Taras
Browse files

Added methods to AuthentificationService

parent 73da2441
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package org.matrix.android.sdk.api.auth
import org.matrix.android.sdk.api.auth.data.Credentials
import org.matrix.android.sdk.api.auth.data.HomeServerConnectionConfig
import org.matrix.android.sdk.api.auth.data.LoginFlowResult
import org.matrix.android.sdk.api.auth.data.SessionParams
import org.matrix.android.sdk.api.auth.login.LoginWizard
import org.matrix.android.sdk.api.auth.registration.RegistrationWizard
import org.matrix.android.sdk.api.auth.wellknown.WellknownResult
......@@ -125,6 +126,12 @@ interface AuthenticationService {
deviceId: String? = null
): Session
/**
* //Added to initiate auth without GET /login
* @return wellKnownResult.homeServerUrl
*/
suspend fun initiateAuth(homeServerConnectionConfig: HomeServerConnectionConfig): String
/**
* Authenticate using m.login.token method during sign in with QR code.
* @param homeServerConnectionConfig the information about the homeserver and other configuration
......@@ -138,4 +145,24 @@ interface AuthenticationService {
initialDeviceName: String? = null,
deviceId: String? = null
): Session
/**
* Added for switch user
*/
suspend fun switchToSessionWithId(id: String)
/**
* Added for switch user
*/
fun getAllAuthSessionsParams(): List<SessionParams>
/**
* Added for switch user
*/
fun createSessionFromParams(params: SessionParams): Session
/**
* Added for switch user
*/
suspend fun removeSession(sessionId: String)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment