Cataly...e::Null(3pm)

πŸ’… Catalyst::Authentication::Store::Null

okay bestie, so this is the manual page for Catalyst::Authentication::Store::Null β€” the Null authentication store from the Catalyst::Authentication::Store family. it lives in the User Contributed Perl Documentation, and it's genuinely one of the most chill little modules you'll ever meet 🫢


✨ SYNOPSIS ✨

like, here's the whole vibe in code form:

use Catalyst qw(
    Authentication
);

__PACKAGE__->config( 'Plugin::Authentication' => {
    default_realm => 'remote',
    realms => {
        remote => {
            credential => {
                class => 'TypeKey',
                key_url => 'http://example.com/regkeys.txt',
            },
            store => {
                class => 'Null',
            }
        }
    }
});

see how the store block is just class => 'Null'? that's it. that's the whole assignment. no cap πŸ”₯


🌸 DESCRIPTION 🌸

so the Null store is a transparent store β€” meaning any user data you hand it, it just... accepts. yes queen, no questions asked πŸ’…

this is mainly useful for remotely authenticating credentials (think TypeKey, OpenID β€” the icons ✨) which may not be tied to any local storage at all. like, the user exists in the aether, not in your database, and that's fine.

it also helps facilitate integration with the Session plugin, so your sessions can do their little thing without the store throwing a tantrum. we love a supportive store πŸŽ€


πŸ¦‹ METHODS πŸ¦‹

πŸ’– new( )

Creates a new instance of the store. fresh start, main character energy, love that for us ✨

πŸ’– for_session( )

Returns the user object passed to the method. literally just hands it right back. generous icon 🫢

πŸ’– from_session( )

Returns the user object passed to the method. same deal, different direction. it's giving "no thoughts, head empty, just vibes" and honestly? iconic πŸ’€

πŸ’– find_user( )

so since this store isn't tied to any real set of users, this method just returns the user info blessed as a Catalyst::Authentication::User::Hash object. that's the whole move. no lookup, no drama 🌈

πŸ’– user_supports( )

Delegates to Catalyst::Authentication::User::Hash. it knows a guy, and that guy handles it 😌


πŸ’€ quick vibe check before you go: this store accepts any supplied user data. that's the whole point β€” it's for remote credentials with no local backing. don't point it at something that actually needs a real user database and then act surprised. iykyk πŸ™ˆ

and that's the page, bestie! πŸŽ€ this beauty shipped with perl v5.40.1 and was last touched on 2026-05-22 β€” go forth and authenticate remotely, you absolute legend πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from