OAuth Server Mock
OAuth Server Mock.
This class mocks an oauth2 server, by generating valid signed JWTs. The class also provides the endpoint from where the public keys can be downloaded.
Parameters
hostname
the Host name, defaults to "localhost".
port
the Host port number. A port number of zero will let the system pick up an ephemeral port in a bind operation, defaults to 0.
Constructors
Functions
Link copied to clipboard
Generate a signed JWT with the supplied claims. The only claims automatically included are: nbf and exp
Link copied to clipboard
Returns the URI for JWKS.