module

Authly

Constants

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", authorization_pending: "The authorization request is still pending; the client should retry the request", slow_down: "The client is polling too frequently and should slow down", expired_token: "The device code has expired; the client should request a new device authorization", invalid_request_uri: "The request_uri is invalid, expired, or does not exist", invalid_request_object: "The request object is invalid or malformed", }

Class methods

access_token(grant_type, **args)
Source
clients
Source
code(response_type, *args)
Source
config
Source
configure
Source
introspect(token : String)
Source
jwt_decode(token, secret_key = config.public_key)
Source
jwt_encode(payload)
Source
owners
Source
revoke(token)
Source
revoked?(token)
Source
valid?(token)
Source

Nested types