Dynamic client registration per RFC 7591.
Provides handle-registration-request for processing client registration
requests and registration-error-response for formatting error responses.
Accepts snake_case wire format and converts to kebab-case for internal storage
via oidc-provider.protocol/ClientStore.
Dynamic client registration per RFC 7591. Provides [[handle-registration-request]] for processing client registration requests and [[registration-error-response]] for formatting error responses. Accepts snake_case wire format and converts to kebab-case for internal storage via [[oidc-provider.protocol/ClientStore]].
(handle-client-read store client-id access-token)Handles RFC 7592 client read requests.
Takes the store implementing oidc-provider.protocol/ClientStore,
client-id, and the bearer access-token presented by the caller.
Returns the client configuration if the token is valid, or a 401 error
response otherwise.
Handles RFC 7592 client read requests. Takes the `store` implementing [[oidc-provider.protocol/ClientStore]], `client-id`, and the bearer `access-token` presented by the caller. Returns the client configuration if the token is valid, or a 401 error response otherwise.
(handle-registration-request request client-store)Processes a dynamic client registration request per RFC 7591.
Takes a request map in snake_case wire format and a client-store implementing
oidc-provider.protocol/ClientStore. Validates the request, applies RFC 7591
defaults, generates credentials, registers the client, and returns the registration
response in snake_case wire format.
Throws ex-info with "invalid_client_metadata" message on validation errors.
Processes a dynamic client registration request per RFC 7591. Takes a `request` map in snake_case wire format and a `client-store` implementing [[oidc-provider.protocol/ClientStore]]. Validates the request, applies RFC 7591 defaults, generates credentials, registers the client, and returns the registration response in snake_case wire format. Throws `ex-info` with `"invalid_client_metadata"` message on validation errors.
(registration-error-response error error-description)Creates an RFC 7591 error response.
Takes an error code string and error-description string. Returns a Ring
response map with JSON body.
Creates an RFC 7591 error response. Takes an `error` code string and `error-description` string. Returns a Ring response map with JSON body.
Malli schema for an RFC 7591 client registration request (snake_case wire format).
Malli schema for an RFC 7591 client registration request (snake_case wire format).
Malli schema for an RFC 7591 client registration response (snake_case wire format).
Malli schema for an RFC 7591 client registration response (snake_case wire format).
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |