App-based authentication and user-based authentication
|
Purpose Use this guide to create ArcGIS OAuth 2.0 developer credentials for either application authentication (a service or integration authenticates as itself) or user authentication (an ArcGIS user signs in and the application acts with that user's authorized access). For steps on using Avolve-provided tooling to automate this process, please see Avolve ArcGIS Integration Tool Guide. |
Overview
Avolve GIS integration security model is based on the use of ArcGIS OAuth 2.0 developer credentials. App-based credentials allow for automated backend services to act, such as geocoding, as well as feature service creation and updating. Such credentials give the Avolve product permission to act in the appropriate GIS environment. User-based credentials allow for access to GIS content within Avolve products based on the signed-in user’s permission.
Before you begin
- Sign in to the ArcGIS Online organization or ArcGIS Enterprise portal where the credentials will be managed.
- The account creating OAuth credentials must meet Esri's account and privilege requirements. Authentication credentials require the privilege to assign privileges to OAuth 2.0 applications. For instructions on how to set up an account with the appropriate permissions, please see the Set up ArcGIS Custom roles article.
- Know which ArcGIS items and privileges the application actually requires. Follow least-privilege principles. For both DigEplan and ProjectDox, the app-based credential item will need access to the following items:
- Project/Cases Feature Layer- For instructions on manually creating this feature service, please see the Set up Project Cases article.
- Geocoding - If leveraging an ArcGIS Online organization, you will provide permissions for the application to access the ArcGIS World Geocoding Service. If leveraging ArcGIS Enterprise, you will need to provide access to the appropriate Geocoding Service item.
- For user authentication, know the exact redirect URL or URLs your application will use after ArcGIS sign-in.
Application-Based OAuth 2.0 Application Credential
- Open Content, select My Content, and choose New item.
-
Select Developer credentials.
-
Choose OAuth 2.0 credentials for app authentication. The exact wording presented can vary by ArcGIS product/version. Click Next.
-
To follow least-privilege principles, select Private application with selected privileges. Click Next.
-
Select Grant access to specific items. Grant access to the Project/Cases Feature Layer and, if applicable, the custom geocoding service. Please note, the creator of the credential item must also be the owner of those items to grant appropriate access. Once the items have been selected, click Next.
-
If using ArcGIS Online, grant access to Geocoding. Click Next.
- You may leave Referrer URLs blank. Click Next.
- Enter a clear title, folder, tags, and description that identify the integration and its purpose. Click Next.
- Review the configuration, ensuring it has access to the correct item access to the Project/Cases Feature Layer and Geocoding is listed under Privileges. Click Create.
-
Once created, the application credentials will be registered, and you will be taken to the item details page. Scroll down to obtain the Client ID and Client Secret.
User-Based OAuth 2.0 Application Credential
- Open Content, select My Content, and choose New item.
- Select Developer credentials.
-
Choose OAuth 2.0 credentials for user authentication. The exact wording presented can vary by ArcGIS product/version. Click Next.
- Enter the corresponding information in each field.
4.1 Redirect URLs: Specific redirect URLs should be provided as part of GIS onboarding.
4.2 Application environment: Leave as Multiple.
4.3 URL: May be left blank.
Click Next. - Enter a clear title, folder, tags, and description that identify the integration and its purpose. Click Next.
- Review the configuration, ensuring it has access to the correct item access to the Project/Cases Feature Layer and Geocoding is listed under Priveleges. Click Create.
- Once created, the application credentials will be registered, and you will be taken to the item details page. Scroll down to obtain the Client ID and Client Secret.
Comments
0 comments
Please sign in to leave a comment.