Cataly...::User(3pm)
πΈ NAME πΈ
okay so bestie, this is Cataly...::User β the manual page for Catalyst::Authentication::Store::DBIx::Class::User, aka the backing user class for the Catalyst::Authentication::Store::DBIx::Class storage module. that's it, that's the whole vibe. it's the user class that does the storage stuff behind the scenes β¨
π« VERSION π«
this doc is talking about version 0.1506, so like, make sure that's the one you're on bestie π«Ά
π¦ SYNOPSIS π¦
okay so real talk: this is internal. you don't use it directly, no cap. go look at Catalyst::Authentication::Store::DBIx::Class for the actual how-to-use-this-module tea β. and if you still need more than what's over there, the move is to read the source. that's the whole synopsis, it's giving mysterious π
π DESCRIPTION π
so Catalyst::Authentication::Store::DBIx::Class::User is the class that implements user storage β and it's hooked up to an underlying DBIx::Class schema object. that's the whole personality. user storage, DBIx::Class schema, connected. iconic π
β SUBROUTINES / METHODS β
buckle up bestie, here's the whole roster π§
π new
it's the constructor. makes the thing. that's it, slay.
πΈ load ( $authinfo, $c )
grabs you a user out of storage using whatever info you handed it in $authinfo. retrieval era π«
π¦ supported_features
tells you which features this class supports. and rn? that's Roles and Session. those two. periodt.
π roles
hands back an array of roles that belong to this user β but only if roles are configured for this user class. no config, no roles, that's the deal π
π for_session
returns a serialized user so it can be stashed in the session. packing it up for safekeeping π¦β¨
π§ from_session
the reverse bestie β it revives a serialized user back out of the session storage. un-packs it. resurrection moment π₯
π get ( $fieldname )
gives you back the value of $fieldname for the user in question. roughly, this translates to a call to the DBIx::Class::Row's get_column( $fieldname ) routine. so like, close enough to that, iykyk π
β get_object
fetches the DBIx::Class object that corresponds to this user. the actual object, in the flesh π
π obj (method)
it's just a synonym for get_object. same energy, different name, we love options π«Ά
π auto_create
okay so this one fires when the auto_create_user option is turned on in Catalyst::Plugin::Authentication and no user matching the authinfo you provided can be found. by default, it calls the "auto_create()" method of the resultset that's associated with this object. and it is up to you to implement that method β she does not do it for you bestie, that's on you π
π₯ auto_update
this gets called when the auto_update_user option is turned on in Catalyst::Plugin::Authentication.
β οΈ now pay attention because this part is important: by default, the DBIx::Class store uses every single field in the authinfo hash to match the user. which means any info you gave with the intent to update has to be ignored during the user search process. otherwise that info will most likely make the user record not be found at all. π
to ignore fields during the search, you have to add the fields you want to update to the 'ignore_fields_in_find' authinfo element. alternatively β and this is the fancy route β you can use one of the advanced row retrieval methods: searchargs or resultset. options on options, we love to see it β¨
by default, auto_update calls the "auto_update()" method of the DBIx::Class::Row object tied to the user. and again: it is up to you to implement that method (probably in your schema file, bestie). she's not gonna do it for you π«Ά
πΈ AUTOLOAD
delegates method calls to the underlying user row. passing the baton πββοΈπ¨
π can
delegates handling of the "can" method to the underlying user row. same deal, different method name π
π BUGS AND LIMITATIONS π
literally none known right now β¨ but if you find any, please email the author. do your civic duty bestie π«Ά
π AUTHOR π
Jason Kuri (jayk@cpan.org)
π CONTRIBUTORS π
- Matt S Trout (mst)
<mst@shadowcat.co.uk>- (fixes wrt can/AUTOLOAD sponsored by <http://reask.com/>)
π LICENSE π
Copyright (c) 2007-2010 the aforementioned authors. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole page bestie π this doc is for perl v5.34.0, dated 2022-06-09, and it's the Cataly...::User page β mwah, go forth and authenticate π
β¨
π¦ where this page comes from
- debian bookworm: libcatalyst-authentication-store-dbix-class-perl 0.1506-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-authentication-store-dbix-class-perl 0.1506-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-authentication-store-dbix-class-perl 0.1506-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-authentication-store-dbix-class-perl 0.1506-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-authentication-store-dbix-class-perl 0.1506-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms