class KeycloakRack::Session
This serves as the primary interface for interacting with Rack and Rails applications, and an instance gets mounted into `keycloak:session` when the middleware processes.
Public Instance Methods
anonymous?()
click to toggle source
# File lib/keycloak_rack/session.rb, line 40 def anonymous? auth_result.success? && token.blank? end
authenticate!()
click to toggle source
@return [Dry::Monads::Result]
# File lib/keycloak_rack/session.rb, line 22 def authenticate! auth_result end
authenticated?()
click to toggle source
# File lib/keycloak_rack/session.rb, line 36 def authenticated? auth_result.success? && token.present? end