class Kemal::Authorizer::UserStorableObject
Overview
Kemal::Authorizer::UserStorableObject
is the default type used in the different authorize handlers.
Included Modules
- JSON::Serializable
- Kemal::Session::StorableObject
Defined in:
kemal-authorizer/user_object.crConstructors
-
.new(id : Int32, email : String, is_admin : Bool)
Creates a new
Kemal::Authorizer::UserStorableObject
. -
.new(id : Int32, email : String)
Creates a new
Kemal::Authorizer::UserStorableObject
. -
.new(pull : JSON::PullParser)
Kemal::Authorizer::UserStorableObject
is the default type used in the different authorize handlers.
Instance Method Summary
Instance methods inherited from class Kemal::Authorizer::StorableUser
is_admin : Bool
is_admin,
is_admin=(is_admin : Bool)
is_admin=
Constructor methods inherited from class Kemal::Authorizer::StorableUser
new(pull : JSON::PullParser)
new
Constructor Detail
def self.new(id : Int32, email : String, is_admin : Bool)
#
Creates a new Kemal::Authorizer::UserStorableObject
.
def self.new(id : Int32, email : String)
#
Creates a new Kemal::Authorizer::UserStorableObject
.
This user object is by default not admin.
def self.new(pull : JSON::PullParser)
#
Kemal::Authorizer::UserStorableObject
is the default type used in the different authorize handlers.