class

App::Auth

Inherits App::Base < App::Pagination < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object

Constants

PARSER_LIST = ["application/json"]
RESPONDER_LIST = ["application/json", "text/html"]

Class methods

base_route

Helper for obtaining base route

login(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)

Helper methods for performing redirect_to calls

Instance methods

base_route(*args, **options)

Helper for obtaining base route

base_route(*args, **options, &)

Helper for obtaining base route

forgot_password

Show forgot password page

Source
forgot_password_post(email : String)

Handle forgot password request

Source
login

Show login page

Source
login_post(email : String, password : String)

Handle username/password login

Source
logout(provider : String | Nil = nil)

Logout

Source
oauth_callback(provider : String) : String | Nil

OAuth callback handler

Source
oauth_initiate(provider : String)

Initiate OAuth flow with external providers (Google, Microsoft)

Source
reset_password(token : String)

Show reset password page

Source
reset_password_post(token : String, password : String, password_confirmation : String)

Handle password reset

Source