Add auth #24

Merged
merged 11 commits into from Mar 15, 2013

Projects

None yet

1 participant

@bigpresh
Owner

Creating a PR for discussion of the changes etc; not yet ready or tested.

See Issue 23.

added some commits Jan 5, 2013
@bigpresh First steps towards using DPAE for auth.
Adding options to use Dancer::Plugin::Auth::Extensible to provide authentication
& access control.  See Issue 23.
c1dbc6a
@bigpresh Using auth stuff in example app 55fef69
@bigpresh Use _ensure_auth for record list. 268bf0e
@bigpresh Pass the handler coderef when using require_role etc fbf8b03
@bigpresh D::P::SimpleCRUD loads DPAE if needed.
We don't need to load DPAE ourselves here; D::P::SimpleCRUD will load it if
we've specified auth settings.
2e1d4e8
@bigpresh Update example to demonstrate roles too 6dc4679
@bigpresh Fully-qualified uri_for() call 8b5e247
@bigpresh Document new auth option 44487de
@bigpresh Can't use uri_for() outside of a request.
We can't use Dancer::uri_for() outside of a request being handled, so it's no
good here.

Just returning what we worked out as an URL seems to work, but needs more
testing.
e0c8931
@bigpresh Don't append a slash to our prefix for the list. 132a4d1
@bigpresh Add a logout link.
Just for easier testing.
221c7f9
@bigpresh bigpresh merged commit 731ebd9 into master Mar 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment