start
suspend fun start(extraRequestParameters: Map<String, String> = emptyMap(), scope: List<String>): OAuth2ClientResult<DeviceAuthorizationFlow.Context>
Initiates a device authorization flow.
See DeviceAuthorizationFlow.resume for completing the flow.
Parameters
extraRequestParameters
the extra key value pairs to send to the device authorize endpoint. See Device Authorize Documentation for parameter options.
scope
the scopes to request during sign in.
suspend fun start(extraRequestParameters: Map<String, String> = emptyMap(), scope: String = client.configuration.defaultScope): OAuth2ClientResult<DeviceAuthorizationFlow.Context>
Deprecated
Use the overload accepting scope as a List<String> instead.
Replace with
start(extraRequestParameters, scope.split(" "))Content copied to clipboard
Initiates a device authorization flow.
See DeviceAuthorizationFlow.resume for completing the flow.
Parameters
extraRequestParameters
the extra key value pairs to send to the device authorize endpoint. See Device Authorize Documentation for parameter options.
scope
the scopes to request during sign in. Defaults to the configured OAuth2Client.