Admin: { addAutoIdStaticUserMapping(): Promise<void>; createLongLivedToken(clientId: string,
clientSecret: string,
scope: string,
secret: string | boolean,
lifetime: number): Promise<any>; createOAuth2ClientWithAdminPrivileges(clientId: string,
clientSecret: string): Promise<void>; executeRfc7523AuthZGrantFlow(clientId: string,
iss: string,
jwk: JwkRsa,
sub: string,
scope?: string[]): Promise<AccessTokenResponseType>; generateRfc7523AuthZGrantArtefacts(clientId: string,
iss: string,
jwk?: JwkRsa,
sub?: string,
scope?: string[],
options?: { save: boolean; }): Promise<{ client: OAuth2ClientSkeleton; issuer: OAuth2TrustedJwtIssuerSkeleton; jwk: JwkRsa; jwks: JwksInterface; }>; generateRfc7523ClientAuthNArtefacts(clientId: string,
aud?: string,
jwk?: JwkRsa,
options?: { save: boolean; }): Promise<{ client: OAuth2ClientSkeleton; jwk: JwkRsa; jwks: JwksInterface; jwt: any; }>; grantOAuth2ClientAdminPrivileges(clientId: string): Promise<void>; hideGenericExtensionAttributes(includeCustomized: boolean,
dryRun: boolean): Promise<void>; listNonOAuth2AdminStaticUserMappings(showProtected: boolean): Promise<string[]>; listOAuth2AdminClients(): Promise<string[]>; listOAuth2CustomClients(): Promise<string[]>; removeStaticUserMapping(subject: string): Promise<void>; repairOrgModel(excludeCustomized: boolean,
extendPermissions: boolean,
dryRun: boolean): Promise<void>; revokeOAuth2ClientAdminPrivileges(clientId: string): Promise<void>; showGenericExtensionAttributes(includeCustomized: boolean,
dryRun: boolean): Promise<void>; trainAA(apiKey: string,
apiSecret: string,
customUsernames?: string[],
customUserAgents?: string[],
customIPs?: string[],
loginsPerUser?: number,
service?: string): Promise<void>; } Type declaration
addAutoIdStaticUserMapping:function
- addAutoIdStaticUserMapping(): Promise<void>
Returns Promise<void>
createLongLivedToken:function
- createLongLivedToken(clientId: string, clientSecret: string, scope: string, secret: string | boolean, lifetime: number): Promise<any>
Parameters
- clientId: string
- clientSecret: string
- scope: string
- secret: string | boolean
- lifetime: number
Returns Promise<any>
createOAuth2ClientWithAdminPrivileges:function
- createOAuth2ClientWithAdminPrivileges(clientId: string, clientSecret: string): Promise<void>
Parameters
- clientId: string
- clientSecret: string
Returns Promise<void>
executeRfc7523AuthZGrantFlow:function
- executeRfc7523AuthZGrantFlow(clientId: string, iss: string, jwk: JwkRsa, sub: string, scope?: string[]): Promise<AccessTokenResponseType>
Parameters
- clientId: string
- iss: string
- jwk: JwkRsa
- sub: string
Optional
scope: string[]
generateRfc7523AuthZGrantArtefacts:function
generateRfc7523ClientAuthNArtefacts:function
- generateRfc7523ClientAuthNArtefacts(clientId: string, aud?: string, jwk?: JwkRsa, options?: {
save: boolean;
}): Promise<{
client: OAuth2ClientSkeleton;
jwk: JwkRsa;
jwks: JwksInterface;
jwt: any;
}> Parameters
- clientId: string
Optional
aud: stringOptional
jwk: JwkRsaOptional
options: {
save: boolean;
}
grantOAuth2ClientAdminPrivileges:function
- grantOAuth2ClientAdminPrivileges(clientId: string): Promise<void>
Returns Promise<void>
hideGenericExtensionAttributes:function
- hideGenericExtensionAttributes(includeCustomized: boolean, dryRun: boolean): Promise<void>
Parameters
- includeCustomized: boolean
- dryRun: boolean
Returns Promise<void>
listNonOAuth2AdminStaticUserMappings:function
- listNonOAuth2AdminStaticUserMappings(showProtected: boolean): Promise<string[]>
Returns Promise<string[]>
listOAuth2AdminClients:function
- listOAuth2AdminClients(): Promise<string[]>
Returns Promise<string[]>
listOAuth2CustomClients:function
- listOAuth2CustomClients(): Promise<string[]>
Returns Promise<string[]>
removeStaticUserMapping:function
- removeStaticUserMapping(subject: string): Promise<void>
Returns Promise<void>
repairOrgModel:function
- repairOrgModel(excludeCustomized: boolean, extendPermissions: boolean, dryRun: boolean): Promise<void>
Parameters
- excludeCustomized: boolean
- extendPermissions: boolean
- dryRun: boolean
Returns Promise<void>
revokeOAuth2ClientAdminPrivileges:function
- revokeOAuth2ClientAdminPrivileges(clientId: string): Promise<void>
Returns Promise<void>
showGenericExtensionAttributes:function
- showGenericExtensionAttributes(includeCustomized: boolean, dryRun: boolean): Promise<void>
Parameters
- includeCustomized: boolean
- dryRun: boolean
Returns Promise<void>
trainAA:function
- trainAA(apiKey: string, apiSecret: string, customUsernames?: string[], customUserAgents?: string[], customIPs?: string[], loginsPerUser?: number, service?: string): Promise<void>
Parameters
- apiKey: string
- apiSecret: string
Optional
customUsernames: string[]Optional
customUserAgents: string[]Optional
customIPs: string[]Optional
loginsPerUser: numberOptional
service: string
Returns Promise<void>
Deprecated
Deprecated since v2.0.0. This function may be removed in future versions. Similar functionality has been added to the frodo-cli code base.