Dynamic client registration per RFC 7591.
Provides handle-registration-request for processing client registration
requests and registration-error-response for formatting error responses.
Accepts keyword maps 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 keyword maps 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. The stored registration access token is a PBKDF2 hash;
verification uses oidc-provider.util/verify-client-secret.
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. The stored registration access token is a PBKDF2 hash; verification uses [[oidc-provider.util/verify-client-secret]].
(handle-registration-request request client-store)Processes a dynamic client registration request per RFC 7591.
Takes a request map with keyword keys 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 with keyword keys.
Throws ex-info with "invalid_client_metadata" message on validation errors.
Processes a dynamic client registration request per RFC 7591. Takes a `request` map with keyword keys 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 with keyword keys. 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.
Malli schema for an RFC 7591 client registration request.
Malli schema for an RFC 7591 client registration response.
Malli schema for an RFC 7591 client registration response.
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 |