Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mojolicious Plugins #1

Open
tempire opened this issue Aug 1, 2012 · 0 comments
Open

Mojolicious Plugins #1

tempire opened this issue Aug 1, 2012 · 0 comments

Comments

@tempire
Copy link
Owner

tempire commented Aug 1, 2012

created_at=2011-01-11T01:47:00

I've recently released a couple more Mojolicious Plugins:

They're quite simple, and match the Mojolicious::Plugin::BasicAuth implementation.

SslAuth uses the recently added TLS certificate authentication support in Mojolicious 1.01.

<script src="https://gist.github.com/773870.js?file=gistfile1.pl"></script>

The first argument passed to the callback sub is the IO handle, giving you access to whatever IO::Socket::SSL provides. (get_cipher, for example).

ParamsAuth is very basic, its purpose being to keep your params-based authentication uniform with other auth-types.

<script src="https://gist.github.com/773872.js?file=gistfile1.pl"></script>

The arguments passed to the callback are the values from the named form or query parameters.

BasicAuth has been around for a while, and uses a similar interface:

<script src="https://gist.github.com/773873.js?file=gistfile1.pl"></script>

If you're looking to be hip with the latest oauth goodness, Marcus Ramberg recently released Mojolicious::Plugin::OAuth2.

...

On a side note, Вячеслав Тихановский (vti) updated MojoX::Validator only days ago. It is, to date, the only form validation helper that doesn't make me think Amway would have been a better career choice. It can be integrated into Mojolicious or used separately. And, like Mojolicious, the code is easy to understand and contribute to. Join up!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant