Client: ListenerOAuth2Handler
Isolated
Defines the OAuth2 handler for listener authentication.
Constructor
Initializes the OAuth2 handler for the listener authentication.
init (OAuth2IntrospectionConfig config)
- config OAuth2IntrospectionConfig
OAuth2 introspection server configurations
Remote Methods
authorize | Authorizes with the relevant authentication & authorization requirements. |
authorize
function authorize(map<string | string[ ]> headers, string | string[ ]? expectedScopes, map<string>? optionalParams) returns IntrospectionResponse | UnauthenticatedError | PermissionDeniedError
Isolated Function
Remote Function
Authorizes with the relevant authentication & authorization requirements.
Parameters
Return Type
(IntrospectionResponse | UnauthenticatedError | PermissionDeniedError)The oauth2:IntrospectionResponse
instance or else grpc:UnauthenticatedError
or grpc:PermissionDeniedError
type error