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

Pyramid Authentication Policies #321

Closed
marinewater opened this issue Jul 5, 2014 · 4 comments
Closed

Pyramid Authentication Policies #321

marinewater opened this issue Jul 5, 2014 · 4 comments

Comments

@marinewater
Copy link
Contributor

Is there a reason why python-social-auth doesn't use the Authentication Policies of Pyramid? The random session cookie is kind of pointless if you have permissions set up.

@omab
Copy link
Owner

omab commented Jul 7, 2014

@Harz-FEAR, that's probably because of my inexperience with the framework, what do you think is needed in order to support them?

@marinewater
Copy link
Contributor Author

It's fairly easy, you must have an Authorization Policy and an AuthenticationPolicy setup, get the headers via pyramid.security.remember(request, username) and redirect the user (e.g. HTTPFound(location=location, headers=rember(request, username)) instead of using sessions.

Pyramid is very well documented, here is a code example, should be rather easy to implement it.

@cjltsod
Copy link
Contributor

cjltsod commented Aug 14, 2015

With this pull request, Pyramid Authentication Policies could run smoothly.

I'm able to write an example with Pyramid Authentication Policies, but I'm not sure what directory name should I use.

@omab
Copy link
Owner

omab commented Dec 27, 2016

Issue ported to python-social-auth/social-app-pyramid#1

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

3 participants