lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

Using flask-user as authentication server for RESTful service? #103

Open rismalrv opened 8 years ago

rismalrv commented 8 years ago

Is it recommended to use flask-user as RESTful authentication/authorization API? What kind of problem i would have if i'm using flask-user as RESTful authentication/authorization server?

lingthio commented 8 years ago

Flask-User has not been designed to be used as a RESTful authentication/authorization server. If you do decide to try using Flask-User, please let us know about your experience. Thanks!

highbass commented 7 years ago

not sure if there is any change that happened with this? .. i am planning to try to use flask-user as restful service and to use tokens.. changing endpoints as needed. If anyone has any experience with this then it be great if i could get feedback.

lingthio commented 7 years ago

No change. I don't understand what you're looking for. Can you please elaborate? Are you looking _touse a service like Auth0 or StormPath? Or are you looking to provide such a service? I'm just uncertain on what role Flask-User is to play. Provide the authentication service? Provide the UI?

Also: have you looked at Flask-Security? They support "JSON/AJAX". Is that what you're looking for? See https://pythonhosted.org/Flask-Security/features.html#json-ajax-support

pjz commented 6 years ago

I think he wants to do authentication via, for example, a token in the HTTP header, to protect a REST API.

pjz commented 6 years ago

Note that being an oauth provider would get this, and conversely, adding token support would be work toward being an oauth provider.