OidcDelegationClient Class

Beta

Utility to generate delegation OAuth or legacy SAML tokens for backend applications

Extends

Methods

Name Description
constructor(configuration: OidcDelegationClientConfiguration): OidcDelegationClient Creates an instance of OidcBackendClient.  
getJwtFromJwt(requestContext: ClientRequestContext, accessToken: AccessToken): Promise<AccessToken> Get a delegation JWT for a new scope from another JWT  
getJwtFromSaml(requestContext: ClientRequestContext, accessToken: AccessToken): Promise<AccessToken> Get a JWT for the specified scope from a SAML token  
getSamlFromJwt(requestContext: ClientRequestContext, jwt: AccessToken): Promise<AccessToken> Get a SAML token for the specified scope from a JWT token  

Inherited methods

Name Inherited from Description
createToken(tokenSet: TokenSet, userInfo?: UserInfo): AccessToken Protected OidcBackendClient  
delete(requestContext: AuthorizedClientRequestContext, relativeUrlPath: string): Promise<void> Protected Client used by clients to send delete requests
discoverEndpoints(requestContext: ClientRequestContext): Promise<Issuer> OidcBackendClient Discover the endpoints of the service
getClient(requestContext: ClientRequestContext): Promise<OpenIdClient> Protected OidcBackendClient  
getUrl(requestContext: ClientRequestContext): Promise<string> Client Gets the URL of the service.
getUrlSearchKey(): string Protected OidcClient Gets name/key to query the service URLs from the URL Discovery Service ("Buddi")
setupOptionDefaults(options: RequestOptions): Promise<void> Protected Client Augments request options with defaults returned by the DefaultRequestOptionsProvider.
parseUserInfo(jwt: string): UserInfo | undefined Static OidcBackendClient  

Inherited properties

Name Type Inherited from Description
_configuration Protected OidcBackendClientConfiguration OidcBackendClient  
_url Protected undefined | string Client  
searchKey Static string OidcClient  

Defined in

Last Updated: 08 January, 2020