Options

class Options

Represents some options to pass to a third-party OAuth2 provider.

Constructors

Link copied to clipboard
constructor(scope: String? = null, userAgent: OAuth2Method.Options.UserAgent = CustomTab)

Basic constructor for standard options.

constructor(scope: String? = null, userAgent: OAuth2Method.Options.UserAgent = CustomTab, customTabsBuilder: (CustomTabsIntent.Builder) -> Unit, customOptions: Array<Pair<String, Any>>)
constructor(scope: String? = null, userAgent: OAuth2Method.Options.UserAgent = CustomTab, customOption: Pair<String, Any>, vararg otherOptions: Pair<String, Any>)

Advanced constructor for provider-specific options.

Types

Link copied to clipboard

Represents the browser (or User-Agent implementation) used to display the OAuth2 provider authorize endpoint on the device.

Functions

Link copied to clipboard

Adds (or removes) a custom parameter to this Options instance with a custom value.

Link copied to clipboard

Adds the "mcc" option (Mobile Country Code) to this Options instance with a value automatically guessed from the activated SIM card on the device. This option is relevant for wassup-based implicit authentication.

Adds the "mcc" option (Mobile Country Code) to this Options instance with a custom value. This option is relevant for wassup-based implicit authentication.

Link copied to clipboard

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