module Authority

Overview

Response Docs https://azutopia.gitbook.io/azu/endpoints/response

Included Modules

Defined in:

config/authority.cr
entities/client_entity.cr
entities/device_code_entity.cr
entities/owner_entitiy.cr
entities/user_session.cr
helpers/session_helper.cr
providers/client_provider.cr
providers/owner_provider.cr
repositories/client_repo.cr
repositories/device_code_repo.cr
repositories/owner_repo.cr
requests/token_info_request.cr
responses/json/access_token_response.cr
responses/json/token_info_response.cr
services/access_token_service.cr
services/authentication_service.cr
services/authorization_code_service.cr
services/device_token_service.cr
services/token_info_service.cr
services/token_introspection_service.cr
validators/confirm_password_validator.cr

Constant Summary

ACTIVATE_URL = "#{BASE_URL}/activate"
BASE_URL = ENV.fetch("BASE_URL", "http://localhost:4000")
DEVICE_CODE_TTL = (ENV.fetch("DEVICE_CODE_TTL", "300")).to_i
HANDLERS = [Azu::Handler::RequestID.new, Azu::Handler::Rescuer.new, Azu::Handler::Logger.new, Session::SessionHandler.new(Authority.session)]
SESSION = Session::CookieStore(UserSession).provider
SESSION_KEY = ENV.fetch("SESSION_KEY", "session_id")

Class Method Summary

Class Method Detail

def self.config #

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

[View source]
def self.env #

[View source]
def self.log #

[View source]
def self.session #

[View source]
def self.start(handlers : Array(HTTP::Handler)) #

[View source]