module Authly

Defined in:

authly.cr
authly/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

Class Method Detail

def self.access_token(grant_type, **args) #

[View source]
def self.clients #

[View source]
def self.code(response_type, *args) #

[View source]
def self.config #

[View source]
def self.configure(&) #

[View source]
def self.introspect(token : String) #

[View source]
def self.jwt_decode(token, secret_key = config.public_key) #

[View source]
def self.jwt_encode(payload) #

[View source]
def self.owners #

[View source]
def self.revoke(token) #

[View source]
def self.revoked?(token) #

[View source]
def self.valid?(token) #

[View source]