A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/arcgis-rest-js/api-reference/arcgis-rest-request/IOAuth2Options/ below:

IOAuth2Options | ArcGIS REST JS

Interface

Options for static OAuth 2.0 helper methods on ArcGISIdentityManager.

Properties Property Type Notes clientId string

Client ID of your application. Can be obtained by registering an application on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise.

expiration number

The requested validity in minutes for a refresh token/access token. Defaults to 20160 (2 weeks).

locale string

The locale assumed to render the login page.

pkce boolean

If true will use the PKCE oAuth 2.0 extension spec in to authorize the user and obtain a token. A value of false will use the deprecated oAuth 2.0 implicit grant type.

popup boolean

Determines whether to open the authorization window in a new tab/window or in the current window.

popupWindowFeatures string

The window features passed to window.open() when popup is true. Defaults to height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes

portal string

The ArcGIS Online or ArcGIS Enterprise portal you want to use for authentication. Defaults to https://www.arcgis.com/sharing/rest for the ArcGIS Online portal.

provider AuthenticationProvider

ArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page.

redirectUri string

A valid URL to redirect to after a user authorizes your application. Can be set on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise.

state string

Custom value for oAuth 2.0 state. A random identifier will be generated if this is not passed.

style "" | "light" | "dark"

Sets the color theme of the oAuth 2.0 authorization screen. Will use the system preference or a light theme by default.

clientId Interface Property clientId: string

Client ID of your application. Can be obtained by registering an application on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise.

expiration

optional

Interface Property expiration: number

The requested validity in minutes for a refresh token/access token. Defaults to 20160 (2 weeks).

When using PKCE or server-based OAuth this will control the duration of the refresh token. In this scenario, access tokens will always have a 30 minute validity.

When using implicit auth (pkce: false) in ArcGISIdentityManager.beginOAuth2, this controls the duration of the access token and no refresh token will be granted.

locale

optionalbrowser only

Interface Property locale: string

The locale assumed to render the login page.

pkce

optionalbrowser only

Interface Property pkce: boolean

If true will use the PKCE oAuth 2.0 extension spec in to authorize the user and obtain a token. A value of false will use the deprecated oAuth 2.0 implicit grant type.

popup

optionalbrowser only

Interface Property popup: boolean

Determines whether to open the authorization window in a new tab/window or in the current window.

popupWindowFeatures

optionalbrowser only

Interface Property popupWindowFeatures: string

The window features passed to window.open() when popup is true. Defaults to height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes

portal

optional

Interface Property portal: string

The ArcGIS Online or ArcGIS Enterprise portal you want to use for authentication. Defaults to https://www.arcgis.com/sharing/rest for the ArcGIS Online portal.

provider

optional

Interface Property provider: AuthenticationProvider

ArcGIS Authentication is used by default. Specifying an alternative will take users directly to the corresponding provider's OAuth page.

redirectUri Interface Property redirectUri: string

A valid URL to redirect to after a user authorizes your application. Can be set on ArcGIS for Developers, ArcGIS Online or on your instance of ArcGIS Enterprise.

state

optional

Interface Property state: string

Custom value for oAuth 2.0 state. A random identifier will be generated if this is not passed.

style

optional

Interface Property style: "" | "light" | "dark"

Sets the color theme of the oAuth 2.0 authorization screen. Will use the system preference or a light theme by default.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4