oidc

generate a turnkey OIDC / OAuth2 provider

Generates a set of expectations that emulate an OpenID Connect / OAuth2 provider (discovery document, JWKS, token, authorize, userinfo and related endpoints) and adds them. An empty body uses the default provider configuration.

put/mockserver/oidc

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/oidc
  • Auth: none declared

Request body

issuerstring

issuer URL advertised in the discovery document and token claims

clientIdstring

OAuth2 client identifier

clientSecretstring

OAuth2 client secret

privateKeyPemstring

PEM-encoded signing private key (never serialized back in responses)

scopesstring[]

supported OAuth2 / OIDC scopes

tokenExpirySecondsinteger

lifetime of issued access tokens in seconds

Response

OIDC provider expectations created

Expectation[] required(unresolved $ref)

list of upserted expectations

Changes

No recorded changes to this operation across all 1 revision of this API.