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

REST auth #149

Closed
plufz opened this issue Jul 31, 2015 · 2 comments
Closed

REST auth #149

plufz opened this issue Jul 31, 2015 · 2 comments

Comments

@plufz
Copy link

plufz commented Jul 31, 2015

Hi!

I'm looking at implementing authentication using this method https://github.com/jamesward/play-rest-security/ where you pass the token as a custom http header instead of using a cookie. Is it possible to pass the token over a custom header instead of a cookie in play2-auth?

Kind Regards!

@gakuzzzz
Copy link
Member

Hi!

Yes, you can do it by using CustomTokenAccessor.

Would you see HTTP Basic Authentication example https://github.com/t2v/play2-auth/tree/946af6164a8dd57b1b1d468cba3f77c259875138/sample/app/controllers/basic
or #112 ?

@plufz
Copy link
Author

plufz commented Aug 3, 2015

Looks great! Thanks a lot!

@plufz plufz closed this as completed Aug 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants