class Kemal::Authorizer::AnonymousHandler

Overview

Kemal::Authorizer::AnonymousHandler is a middleware that makes sure that only anonymous users can visit the specified routes.

Kemal::Authorizer::AnonymousHandler.new({
  "/login" => ["GET", "POST"],
  "/signup" => ["GET", "POST"]
})

Defined in:

kemal-authorizer/handlers.cr

Instance Method Summary

Constructor methods inherited from class Kemal::Authorizer::BaseHandler

new(auth_req_routes : Hash(String, Array(String))) new

Instance Method Detail

def call(context) #

[View source]