Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discuss] API change #89

Closed
lepture opened this issue Mar 25, 2014 · 3 comments

Comments

@lepture
Copy link
Owner

commented Mar 25, 2014

The current API of require_oauth is something like this:

@app.route('/api/user')
@oauth.require_oauth('email'):
def user(req):
    return jsonify(req.user)

I am going to remove the extra param, which should be:

from flask import request

@app.route('/api/user')
@oauth.require_oauth('email'):
def user():
    return jsonify(request.oauth.user)
@lepture

This comment has been minimized.

@asteinlein

This comment has been minimized.

Copy link

commented Apr 30, 2014

Very much +1 on this, since we also want to allow both session and oauth on the same view, ref #87.

Is there anything I can do to help?

@lepture

This comment has been minimized.

Copy link
Owner Author

commented Apr 30, 2014

@asteinlein Thanks. It is done, and it is merged into master now. 6f18350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.