start

suspend fun start(username: String, password: String, scope: List<String>): OAuth2ClientResult<Token>

Initiates the Resource Owner flow.

Parameters

username

the username

password

the password

scope

the scopes to request during sign in.


suspend fun start(username: String, password: String, scope: String = client.configuration.defaultScope): OAuth2ClientResult<Token>

Deprecated

Use the overload accepting scope as a List<String> instead.

Replace with

start(username, password, scope.split(" "))

Initiates the Resource Owner flow.

Parameters

username

the username

password

the password

scope

the scopes to request during sign in. Defaults to the configured client.