GenieAuthentication.get_authenticationMethod
get_authentication(session) :: Union{Nothing,Any}
get_authentication(params::Dict{Symbol,Any}) :: Union{Nothing,Any}

Returns the user id stored on the session, if available.

source
GenieAuthentication.loginMethod
login(user, session)
login(user, params::Dict{Symbol,Any})

Persists on session the id of the user object and returns the session.

source
GenieAuthentication.logoutMethod
logout(session) :: Sessions.Session
logout(params::Dict{Symbol,Any}) :: Sessions.Session

Deletes the id of the user object from the session, effectively logging the user off.

source
GenieAuthentication.with_authenticationMethod
with_authentication(f::Function, fallback::Function, session)
with_authentication(f::Function, fallback::Function, params::Dict{Symbol,Any})

Invokes f only if a user is currently authenticated on the session, fallback is invoked otherwise.

source
GenieAuthentication.@authenticated!Macro
@authenticate!(exception::E = ExceptionalResponse(Genie.Renderer.redirect(:show_login)))

If the current request is not authenticated it throws an ExceptionalResponse exception.

source