librelist archives

« back to archive

Oauth Provider for REST API using Flask ?

Oauth Provider for REST API using Flask ?

From:
Anuj Kumar
Date:
2012-07-16 @ 12:13
Hi,

I'm developing a web based service and I want to expose its functionality
as a REST API. I'm considering Flask to develop this API and I need to
allow developers to create/manage user accounts and authenticate using API
itself. How to approach this use case? Do I need to use OAuth? If so, is
there any flask extension for oAuth provider implementaion?

-- 
Regards,
Anuj Kumar

E-mail      : anuj.kk@gmail.com
Website   : http://www.anujkumar.com
<http://blog.anujkumar.com/>
Facebook : http://www.facebook.com/anujkrk
Twitter      : http://twitter.com/#!/anujkkk

Re: [flask] Oauth Provider for REST API using Flask ?

From:
kracethekingmaker
Date:
2012-07-16 @ 13:29
Hi,

Yes, there is a OAuth Application in Flask, take a loot at it. 
https://github.com/hasgeek/lastuser and corresponding Flask-extension ( 
https://github.com/hasgeek/flask-lastuser) . This is currently deployed 
for http://funnel.hasgeek.com and 
http://in.pycon.org/2012/funnel/pyconindia2012/

There isn't great documentation, you need dig into code find how it 
works, If you are familiar with Flask and python, you can get it work.

*Disclaimer*: I work for HasGeek.

> Hi,
>
> I'm developing a web based service and I want to expose its 
> functionality as a REST API. I'm considering Flask to develop this API 
> and I need to allow developers to create/manage user accounts and 
> authenticate using API itself. How to approach this use case? Do I 
> need to use OAuth? If so, is there any flask extension for oAuth 
> provider implementaion?
>
> -- 
> Regards,
> Anuj Kumar
>
> E-mail      : anuj.kk@gmail.com <mailto:anuj.kk@gmail.com>
> Website   : http://www.anujkumar.com <http://www.anujkumar.com/>
> Facebook : http://www.facebook.com/anujkrk
> Twitter      : http://twitter.com/#!/anujkkk 
> <http://twitter.com/#%21/anujkkk>
>


-- 
"Talk is cheap, show me the code" -- Linus Torvalds
Regards
Kracekumar.R
www.kracekumar.com

Re: [flask] Oauth Provider for REST API using Flask ?

From:
Larry Tjoelker
Date:
2012-07-17 @ 22:50
Thanks for sharing LastUser and flask-lastuser.   Hopefully they will be 
commented on by other authors of user 
management/authentication/authorization extensions.  Do you have plans to 
keep current with the final version of OpenID Connect (aka Google Auth.) 
which will supposedly be approved "soon"?

-larry