@point3/logto-module
Version:
포인트3 내부 logto Authentication 모듈입니다
45 lines (44 loc) • 1.02 kB
TypeScript
export type LogtoConfig = {
endpoint: string;
appId: string;
grantType: GrantType;
appSecret: string;
scopes?: string[];
resources?: string[];
prompt?: Prompt;
includeReservedScopes?: boolean;
redirectUri?: string;
};
export declare enum Prompt {
None = "none",
Consent = "consent",
Login = "login"
}
export declare enum GrantType {
AuthorizationCode = "authorization_code",
ClientCredentials = "client_credentials",
RefreshToken = "refresh_token"
}
export interface LogtoVerifierConfig {
jwksUri: string;
issuer: string;
}
export interface LogtoOAuthConfig {
endpoint: string;
clientId: string;
clientSecret: string;
resources: string[];
scopes: string[];
prompt: Prompt;
redirectUri: string;
signInUri: string;
dashboardSignInUri?: string;
}
export interface LogtoM2MConfig {
endpoint: string;
clientId: string;
clientSecret: string;
resource: string;
apiUrl: string;
scopes: string[];
}