Options

fun Options(scope: String? = null, userAgent: OAuth2Method.Options.UserAgent = CustomTab)

Basic constructor for standard options.

The scope option key is a standard OAuth2 option and can be passed to all OAuth2 providers.

The userAgent option is not passed to the OAuth2 provider, it only selects which web browser will display the OAuth2 provider authorize endpoint on the device. This option is intended for debugging purpose, and may open security weaknesses if not properly used, so please keep the default value unless you exactly know what you are doing!


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


fun Options(    scope: String? = null,     userAgent: OAuth2Method.Options.UserAgent = CustomTab,     customOption: Pair<String, Any>,     vararg otherOptions: Pair<String, Any>)

Advanced constructor for provider-specific options.

Most of the options are specified using the customOption (the first one) and otherOptions (optional other ones) parameters as pairs of key / value.

Only the scope option key is standard and doesn't need to be set through customOption.

The userAgent option is not passed to the OAuth2 provider, it only selects which web browser will display the OAuth2 provider authorize endpoint on the device. This option is intended for debugging purpose, and may open security weaknesses if not properly used, so please keep the default value unless you exactly know what you are doing!