setScope

fun setScope(scope: String?): OAuth2Method.Options

Adds an OAuth2 "scope" option to this Options instance.

Return

This Options instance updated, so that other With... methods can be chained

Parameters

scope

An OAuth2 scope (value is OAuth2-provider-specific). If null, remains this instance unchanged (note that if no scope is specified within an Options instance, a minimal scope will be requested to the OAuth2 provider when passed to com.orange.webcom.sdk.authentication.methods.OAuth2Method.authWithOAuth)