Liking cljdoc? Tell your friends :D

oidc-provider.registration

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]].
raw docstring

handle-client-readclj

(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.
raw docstring

handle-registration-requestclj

(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.
raw docstring

registration-error-responseclj

(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.
raw docstring

RegistrationRequestclj

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).
raw docstring

RegistrationResponseclj

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).
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close