OAuth credentials are an item
Creating OAuth 2.0 credentials
Prerequisites
All ArcGIS Location Platform accounts have the correct privileges to create OAuth 2.0 credentials by default.
Steps
The steps to create OAuth 2.0 credentials are explained in the Create OAuth credentials for user authentication tutorial:
Create OAuth credentials for user authentication
Most user authenticationclient from a set of OAuth credentials. They also require a redirect URL to be configured in the settings of the OAuth credential.
Redirect URLs
A redirect URL is a required parameter of user authentication
Redirect URLs are managed as a property of OAuth credentialsclient_id, client_secret, and redirect URIs. They are a type of developer credential.
To add a redirect URL to your developer credentials, complete the following steps:
-
Sign in to your portal
ArcGIS portal, also known as a portal, is a website with applications and tools that can be used to create, manage, access, and share geospatial content and data. It supports security and authentication, developer credentials, content and data service management, user and group management, and site administration. A portal can be hosted in Esri's infrastructure or your own infrastructure. and search for your developer credentialsDeveloper credentials are a type of item in a portal that contains parameters for authentication. There are two types of developer credentials: API key credentials and OAuth credentials. . -
Go to the item page
An item page is a web page in ArcGIS Online or the developer dashboard used to access and manage the properties for an item and the content it references such as a web map, hosted layer, or file. of the credentials and click Settings > Application. -
Under Redirect URLs, add the URL that you want to direct users to after completing authentication. This URL varies based on your application and typically takes the format of
"httpsor:// <server >[ :port]/callback.html" "http. This is a valid web page or server endpoint to which a user can be redirected after successful sign in.://my-arcgis-app :/auth" - For example, if you are running an application on
https, add://localhost :8080 httpsto the list of redirect URLs. The exact URL depends on the name of your callback page and the programming language you are using. If you are following a "Sign in with user authentication" ArcGIS tutorial, it will specify the name of your callback page.://localhost :8080/callback.html
- For example, if you are running an application on
Privileges and item access
When implementing user authenticationclient_id, client_secret, and redirect URIs. They are a type of developer credential.
Referrers
A referrer is an HTTP header field used to identify the client requesting a server resource. This functions as a security measure, allowing applications to confirm their client's identity. When OAuth credentialsclient_id, client_secret, and redirect URIs. They are a type of developer credential.referer header set, services can confirm that an incoming request's referrer matches one of the valid referrers assigned to that access token.
Specific domains can be provided or you can use wildcard characters (*) in the subdomain of your allowed referrer. For example https will allow the access token to be used on both https and https. While it is also possible to restrict access token use to specific paths (https), we do not recommend this method because browsers may remove the path due to privacy concerns.
Usage tracking
All services and content accessed with OAuth credentialsclient_id, client_secret, and redirect URIs. They are a type of developer credential.
ArcGIS Location Platform developers use their dashboardclient_id, client_secret, and redirect URIs. They are a type of developer credential.
-
Go to location.arcgis.com and sign in with an ArcGIS Location Platform account
An ArcGIS Location Platform account, formerly known as an ArcGIS Developer account, is an identity associated with an ArcGIS Location Platform subscription. . -
Click My dashboard > Usage > Developer credentials.
-
In the left sidebar, select the OAuth credentials
OAuth credentials are an item that contains parameters required to implement user authentication or app authentication, including a item you would like to review usage for.client_id,client_secret, and redirect URIs. They are a type of developer credential. -
In the Billing cycle selector, choose a billing cycle to inspect. The main panel of the window will show a usage report.
-
Review the usage report for your OAuth credentials
OAuth credentials are an item that contains parameters required to implement user authentication or app authentication, including a . Usage information is organized by secure resourceclient_id,client_secret, and redirect URIs. They are a type of developer credential.A secure resource is any item or service in an ArcGIS that requires an ArcGIS account and authentication to access. Examples include ArcGIS Location Services, and items and data services in an ArcGIS portal. . Click Download CSV to download the information as a.csvfile.
-
Click the dropdown button on a specific service to view a usage timeline. The panel will show the resource consumption for each day of the billing cycle.