MockOAuth2Server
Functions
Returns the authorization server's authorization_endpoint
for the given issuerId.
Returns the authorization server's end_session_endpoint
for the given issuerId.
Enqueues a callback at the server's HTTP request handler. This allows for customization of the token that the server issues whenever a Relying Party requests a token from the tokenEndpointUrl.
Issues a signed JWT as part of the authorization code grant.
Convenience method for issuing a signed JWT with default values.
Returns the authorization server's well-known OAuth2 metadata discovery URL for the given issuerId.
Returns the authorization server's revocation_endpoint
for the given issuerId.
Gracefully shuts down the MockOAuth2Server.
Starts the MockOAuth2Server on the localhost interface.
Starts the MockOAuth2Server on the given inetAddress IP address at the given port.
Awaits the next HTTP request (waiting up to the specified wait time if necessary), removes it from the queue, and returns it. Callers should use this to verify the request was sent as intended within the given time.
Returns the authorization server's token_endpoint
for the given issuerId.
Returns the authorization server's userinfo_endpoint
for the given issuerId.
Returns the authorization server's well-known OpenID Connect metadata discovery URL for the given issuerId.