@trimble-oss/trimble-id
Version:
Trimble Identity SDK for JavaScript/TypeScript
63 lines (62 loc) • 3.19 kB
TypeScript
/**
* Copyright (c) Trimble Inc.
*/
/**
* Analytics event constants for method tracking
*/
export declare const ANALYTICS: {
readonly RETRIEVE_TOKEN: "RetrieveToken";
readonly RETRIEVE_TOKEN_ENDPOINT: "RetrieveTokenEndpoint";
readonly RETRIEVE_AUTHORIZATION_ENDPOINT: "RetrieveAuthorizationEndpoint";
readonly RETRIEVE_USER_INFO_ENDPOINT: "RetrieveUserInfoEndpoint";
readonly RETRIEVE_TOKEN_REVOCATION_ENDPOINT: "RetrieveTokenRevocationEndpoint";
readonly RETRIEVE_END_SESSION_ENDPOINT: "RetrieveEndSessionEndpoint";
readonly RETRIEVE_JSON_WEB_KEY_SET_ENDPOINT: "RetrieveJSONWebKeySetEndpoint";
readonly RETRIEVE_ID_TOKEN: "RetrieveIdToken";
readonly RETRIEVE_REFRESH_TOKEN: "RetrieveRefreshToken";
readonly RETRIEVE_CODE_VERIFIER: "RetrieveCodeVerifier";
readonly REVOKED_REFRESH_TOKEN: "RevokeRefreshToken";
readonly RETRIEVE_TOKEN_EXPIRY: "RetrieveTokenExpiry";
readonly WITH_LOGOUT_REDIRECT: "WithLogoutRedirect";
readonly WITH_PERSISTENT_STORAGE: "WithPersistentStorage";
readonly WITH_ACCESS_TOKEN: "WithAccessToken";
readonly WITH_ID_TOKEN: "WithIdToken";
readonly WITH_REFRESH_TOKEN: "WithRefreshToken";
readonly WITH_PROOF_KEY_FOR_CODE_EXCHANGE: "WithProofKeyForCodeExchange";
readonly WITH_CONSUMER_SECRET: "WithConsumerSecret";
readonly WITH_SCOPES: "WithScopes";
readonly WITH_IDENTITY_PROVIDER: "WithIdentityProvider";
readonly WITH_STATE: "WithState";
readonly GET_OAUTH_REDIRECT: "GetOAuthRedirect";
readonly VALIDATE_QUERY: "ValidateQuery";
readonly GET_OAUTH_LOGOUT_REDIRECT: "GetOAuthLogoutRedirect";
readonly VALIDATE_CODE: "ValidateCode";
readonly RETRIEVE_CLIENT: "RetrieveClient";
readonly RETRIEVE_JSON_WEB_KEY_SET: "RetrieveKeyset";
readonly RETRIEVE_CLAIMSET: "RetrieveClaimset";
readonly DECODE_HASH: "DecodeHash";
readonly REVOKED_TOKEN: "RevokeToken";
readonly CLIENT_CREDENTIAL_TOKEN_PROVIDER: "ClientCredentialTokenProvider";
readonly OPENID_ENDPOINT_PROVIDER: "OpenIdEndpointProvider";
readonly FIXED_ENDPOINT_PROVIDER: "FixedEndpointProvider";
readonly FIXED_TOKEN_PROVIDER: "FixedTokenProvider";
readonly FIXED_KEYSET_PROVIDER: "FixedKeysetProvider";
readonly REFRESHABLE_TOKEN_PROVIDER: "RefreshableTokenProvider";
readonly AUTHORIZATION_CODE_GRANT_TOKEN_PROVIDER: "AuthorizationCodeGrantTokenProvider";
readonly BEARER_TOKEN_HTTP_CLIENT_PROVIDER: "BearerTokenHttpClientProvider";
readonly OPENID_KEYSET_PROVIDER: "OpenIdKeysetProvider";
readonly VALIDATED_CLAIMSET_PROVIDER: "ValidatedClaimsetProvider";
readonly IMPLICIT_GRANT_TOKEN_PROVIDER: "ImplicitGrantTokenProvider";
readonly ON_BEHALF_GRANT_TOKEN_PROVIDER: "OnBehalfGrantTokenProvider";
};
export declare const APPLICATION_JSON = "application/json";
export declare const ID_TOKEN_REQUIRED_ERROR = "An id_token is required to log out of all applications";
/**
* Time conversion constants
*/
export declare const MILLISECONDS_PER_SECOND = 1000;
/**
* Token expiry buffer time (5 minutes in milliseconds)
* Used to refresh tokens before they actually expire
*/
export declare const TOKEN_EXPIRY_BUFFER_MS: number;