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.

Use dark colors for code blocksCopy
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.