@asgardeo/auth-js
Version:
Asgardeo Auth JS SDK to be used in JavaScript and TypeScript applications.
47 lines (43 loc) • 2.02 kB
text/typescript
/**
* Copyright (c) 2019, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { OIDCEndpoints } from "../models";
export const SERVICE_RESOURCES: OIDCEndpoints = {
authorizationEndpoint: "/oauth2/authorize",
checkSessionIframe: "/oidc/checksession",
endSessionEndpoint: "/oidc/logout",
issuer: "/oauth2/token",
jwksUri: "/oauth2/jwks",
revocationEndpoint: "/oauth2/revoke",
tokenEndpoint: "/oauth2/token",
userinfoEndpoint: "/oauth2/userinfo"
};
export const AUTHORIZATION_ENDPOINT: string = "authorization_endpoint";
export const TOKEN_ENDPOINT: string = "token_endpoint";
export const REVOKE_TOKEN_ENDPOINT: string = "revocation_endpoint";
export const END_SESSION_ENDPOINT: string = "end_session_endpoint";
export const JWKS_ENDPOINT: string = "jwks_uri";
export const OP_CONFIG_INITIATED: string = "op_config_initiated";
export const TENANT: string = "tenant";
export const SIGN_IN_REDIRECT_URL: string = "sign_in_redirect_url";
export const SIGN_OUT_REDIRECT_URL: string = "sign_out_redirect_url";
export const OIDC_SESSION_IFRAME_ENDPOINT: string = "check_session_iframe";
export const OPEN_ID_CONFIG: string = "open_id_config";
export const REGISTRATION_ENDPOINT: string = "registration_endpoint";
export const USERINFO_ENDPOINT: string = "userinfo_endpoint";
export const INTROSPECTION_ENDPOINT: string = "introspection_endpoint";
export const ISSUER: string = "issuer";