Authly::ClientAuthentication
Client authentication for the endpoints a client calls with its own credentials (RFC 6749
section 2.3.1): HTTP Basic (client_secret_basic), else client_id and client_secret in the
form body (client_secret_post).
Constants
NO_CREDENTIALS = {nil, nil}
Instance methods
authenticate(context : HTTP::Server::Context) : String | Nil
The authenticated client's id; otherwise answers 401 invalid_client and returns nil.
credentials(context : HTTP::Server::Context) : Tuple(String | Nil, String | Nil)
The id and secret the request presents, nil for each one it does not.