Initializes new client with specific Forge app credentials.
Forge application client ID.
Forge application client secret.
Retrieves 2-legged access token for a specific set of scopes (docs). Unless the {@see force} parameter is used, the access tokens are cached based on their scopes and the 'expires_in' field in the response.
List of requested scopes.
Promise of 2-legged authentication object containing two fields, 'access_token' with the actual token, and 'expires_in' with expiration time (in seconds).
Generates a URL for 3-legged authentication.
List of requested scopes.
Same redirect URI as defined by the Forge app.
Autodesk login URL.
Exchanges 3-legged authentication code for an access token (docs).
Authentication code returned from the Autodesk login process.
Same redirect URI as defined by the Forge app.
Promise of 3-legged authentication object containing 'access_token', 'refresh_token', and 'expires_in' with expiration time (in seconds).
Gets profile information for a user based on their 3-legged auth token (docs).
3-legged authentication token.
User profile information.
Refreshes 3-legged access token (https://forge.autodesk.com/en/docs/oauth/v2/reference/http/refreshtoken-POST).
List of requested scopes.
Refresh token.
Promise of 3-legged authentication object containing 'access_token', 'refresh_token', and 'expires_in' with expiration time (in seconds).
Generated using TypeDoc
Client providing access to Autodesk Forge authentication APIs.
authentication