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

handle-registration-requestclj

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

Malli schema for an RFC 7591 client registration request.
raw docstring

RegistrationResponseclj

Malli schema for an RFC 7591 client registration response.

Malli schema for an RFC 7591 client registration response.
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