Flask-User icon indicating copy to clipboard operation
Flask-User copied to clipboard

Using flask-user as authentication server for RESTful service?

Open rismalrv opened this issue 9 years ago • 5 comments

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?

rismalrv avatar Nov 15 '15 22:11 rismalrv

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!

lingthio avatar Nov 17 '15 19:11 lingthio

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.

highbass avatar Jan 26 '17 09:01 highbass

No change. I don't understand what you're looking for. Can you please elaborate? Are you looking to_use 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

lingthio avatar Jan 27 '17 19:01 lingthio

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

pjz avatar Mar 24 '18 02:03 pjz

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

pjz avatar Apr 26 '18 05:04 pjz