discoverAuthServerMetadata( Â Â Â Â issuerUrl:string, ):Promise< Â Â Â Â |{ Â Â Â Â Â Â Â Â authorization_endpoint:string; Â Â Â Â Â Â Â Â issuer:string; Â Â Â Â Â Â Â Â registration_endpoint?:string; Â Â Â Â Â Â Â Â scopes_supported?:string[]; Â Â Â Â Â Â Â Â token_endpoint:string; Â Â Â Â } Â Â Â Â |undefined, >
Discovers the OAuth2 authorization server metadata.
Parameters
issuerUrl: string
Returns Promise< Â Â Â Â |{ Â Â Â Â Â Â Â Â authorization_endpoint:string; Â Â Â Â Â Â Â Â issuer:string; Â Â Â Â Â Â Â Â registration_endpoint?:string; Â Â Â Â Â Â Â Â scopes_supported?:string[]; Â Â Â Â Â Â Â Â token_endpoint:string; Â Â Â Â } Â Â Â Â |undefined, >
discoverResourceMetadata
discoverResourceMetadata( Â Â Â Â resourceUrl:string, ):Promise< Â Â Â Â {authorization_servers:string[];resource:string} Â Â Â Â |undefined, >
Implements Metadata discovery for OAuth2 following RFC8414 and RFC9728.