module Authly
Defined in:
authly.crauthly/access_token.cr
authly/authorizable_client.cr
authly/authorizable_owner.cr
authly/client.cr
authly/code.cr
authly/code_challenge_builder.cr
authly/configuration.cr
authly/error.cr
authly/grant.cr
authly/grants/authorization_code.cr
authly/grants/client_credentials.cr
authly/grants/password.cr
authly/grants/refresh_token.cr
authly/handler.cr
authly/handlers/access_token_handler.cr
authly/handlers/authorization_handler.cr
authly/handlers/introspect_hanlder.cr
authly/handlers/refresh_token_handler.cr
authly/handlers/response_helper.cr
authly/handlers/revoke_hanlder.cr
authly/owner.cr
authly/response_type.cr
authly/state_store.cr
authly/token_manager.cr
authly/token_store.cr
Constant Summary
-
CONFIG =
Configuration.new
-
ERROR_MSG =
{invalid_redirect_uri: "Invalid redirect uri", invalid_state: "Invalid state", invalid_scope: "Invalid scope value in the request", invalid_client: "Client authentication failed, such as if the request contains an invalid client ID or secret.", invalid_request: "The request is missing a parameter so the server can’t proceed with the request", invalid_grant: "The authorization code is invalid or expired.", invalid_response_type: "The response type is invalid.", owner_credentials: "Invalid owner credentials", unauthorized_client: "This client is not authorized to use the requested grant type", unsupported_grant_type: "Invalid or unknown grant type", access_denied: "The user or authorization server denied the request", unsupported_token_type: "The authorization server does not support the presented token type", invalid_token: "The token is invalid or expired"}
Class Method Summary
- .access_token(grant_type, **args)
- .clients
- .code(response_type, *args)
- .config
- .configure(&)
- .introspect(token : String)
- .jwt_decode(token, secret_key = config.public_key)
- .jwt_encode(payload)
- .owners
- .revoke(token)
- .revoked?(token)
- .valid?(token)