Re: [flask] Flask-oauthlib for Authentication
- From:
- Viktor Evdokimov
- Date:
- 2014-02-19 @ 10:58
You don’t need library just for that.
Use
@app.before_request
def check_client_id():
pass
--
Best,
ᏛᎧ
On Wednesday, February 19, 2014 at 5:03 AM, Sjoerd Huisman wrote:
> Hi All,
>
> I’m building a webservice based on REST principles. To secure this
webserver I want to use OAuth for Authentication. The consumers of this
webservice already have an account, and I can supply them with a
client_key and client_secret.
>
> The package Flask-oauthlib has gained my attention, but the package
seems designed for OAuth for OpenID. How can I use this package to only
check the client ID and Client secret to generate a bearer token and
validate this token at my resources?
>
> https://github.com/lepture/flask-oauthlib
>
> Thanks
>
>
>
Re: [flask] Flask-oauthlib for Authentication
- From:
- Sjoerd Huisman
- Date:
- 2014-02-19 @ 11:41
Thanks for your reply. Your suggestion does not implement the standards of
OAuth for Authentication. I hope you can provide a solution more directed
to my question.
Thanks
From: flask@librelist.com [mailto:flask@librelist.com] On Behalf Of Viktor
Evdokimov
Sent: woensdag 19 februari 2014 11:58
To: flask@librelist.com
Subject: Re: [flask] Flask-oauthlib for Authentication
You don’t need library just for that.
Use
@app.before_request
def check_client_id():
pass
--
Best,
ᏛᎧ
On Wednesday, February 19, 2014 at 5:03 AM, Sjoerd Huisman wrote:
Hi All,
I’m building a webservice based on REST principles. To secure this
webserver I want to use OAuth for Authentication. The consumers of this
webservice already have an account, and I can supply them with a
client_key and client_secret.
The package Flask-oauthlib has gained my attention, but the package seems
designed for OAuth for OpenID. How can I use this package to only check
the client ID and Client secret to generate a bearer token and validate
this token at my resources?
https://github.com/lepture/flask-oauthlib
Thanks