ArcGISAccessDeniedError

Class

This error code will be thrown by the following methods when the user cancels or denies an authorization request on the OAuth 2.0 authorization screen.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { ArcGISIdentityManager } from "@esri/arcgis-rest-request";

ArcGISIdentityManager.beginOAuth2({
  clientId: "***"
  redirectUri: "***",
  popup: true
}).then(authenticationManager => {
  console.log("OAuth 2.0 Successful");
}).catch(e => {
  if(e.name === "ArcGISAccessDeniedError") {
    console.log("The user did not authorize your app.")
  } else {
    console.log("Something else went wrong. Error:", e);
  }
})
Inheritance: ArcGISAccessDeniedErrorError

Constructors

constructor

Class Constructor
new ArcGISAccessDeniedError(): ArcGISAccessDeniedError

Create a new ArcGISAccessDeniedError object.

Returns 
ArcGISAccessDeniedError

Properties

PropertyTypeNotes
string

Formatted error message. See the Error class for more details.

string

The name of this error. Will always be "ArcGISAccessDeniedError" to conform with the Error class.

message

Class Property
message: string

Formatted error message. See the Error class for more details.

name

Class Property
name: string

The name of this error. Will always be "ArcGISAccessDeniedError" to conform with the Error class.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close