Mark user as logged in via an different method #95

Closed
jasonamyers opened this Issue Mar 3, 2013 · 5 comments

Comments

Projects
None yet
2 participants
@jasonamyers

I've got a need for two different auth types, one of these is the typically username and password Flask-Security supports. However, the other is a uniquely generated PIN sent to the users phone is there a good way to make flask-security treat users authed via the second method as if they auth with username and password?

@mattupstate

This comment has been minimized.

Show comment Hide comment
@mattupstate

mattupstate Mar 3, 2013

Owner

Currently Flask-Security is not configurable in such a way that you can combine custom auth layers with its own built in methods. The best thing to do at the moment would be to write you're own decorator.

Owner

mattupstate commented Mar 3, 2013

Currently Flask-Security is not configurable in such a way that you can combine custom auth layers with its own built in methods. The best thing to do at the moment would be to write you're own decorator.

@mattupstate

This comment has been minimized.

Show comment Hide comment
@mattupstate

mattupstate Mar 13, 2013

Owner

Jason, have you settled on a decorator for your custom authentication? I can help you out if you need it.

Owner

mattupstate commented Mar 13, 2013

Jason, have you settled on a decorator for your custom authentication? I can help you out if you need it.

@jasonamyers

This comment has been minimized.

Show comment Hide comment
@jasonamyers

jasonamyers Mar 14, 2013

I haven't decided what to do yet, will be back on it after pycon. I'm also
struggling a bit with flask and python 3

On Wed, Mar 13, 2013 at 11:12 AM, Matt Wright notifications@github.comwrote:

Jason, have you settled on a decorator for your custom authentication? I
can help you out if you need it.


Reply to this email directly or view it on GitHubhttps://github.com/mattupstate/flask-security/issues/95#issuecomment-14850913
.

I haven't decided what to do yet, will be back on it after pycon. I'm also
struggling a bit with flask and python 3

On Wed, Mar 13, 2013 at 11:12 AM, Matt Wright notifications@github.comwrote:

Jason, have you settled on a decorator for your custom authentication? I
can help you out if you need it.


Reply to this email directly or view it on GitHubhttps://github.com/mattupstate/flask-security/issues/95#issuecomment-14850913
.

@mattupstate

This comment has been minimized.

Show comment Hide comment
@mattupstate

mattupstate May 28, 2013

Owner

@jasonamyers any update on this issue?

Owner

mattupstate commented May 28, 2013

@jasonamyers any update on this issue?

@jasonamyers

This comment has been minimized.

Show comment Hide comment
@jasonamyers

jasonamyers May 30, 2013

This was resolved by copying something from django. Thanks for follow up

On Tue, May 28, 2013 at 10:13 AM, Matt Wright notifications@github.comwrote:

@jasonamyers https://github.com/jasonamyers any update on this issue?


Reply to this email directly or view it on GitHubhttps://github.com/mattupstate/flask-security/issues/95#issuecomment-18557081
.

This was resolved by copying something from django. Thanks for follow up

On Tue, May 28, 2013 at 10:13 AM, Matt Wright notifications@github.comwrote:

@jasonamyers https://github.com/jasonamyers any update on this issue?


Reply to this email directly or view it on GitHubhttps://github.com/mattupstate/flask-security/issues/95#issuecomment-18557081
.

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