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

client model object not available in request parameter #53

Closed
alisaifee opened this issue Nov 15, 2013 · 2 comments

Comments

@alisaifee
Copy link
Contributor

commented Nov 15, 2013

As per the documentation for protecting resources the request parameter that is passed into the view function is supposed to have the current client model object. However, this is not set. Using the below view results in client being None.

@app.route("/client")
@oauth.require_oauth()
def get_client(oauth):
    return jsonify({"name":oauth.client.name})

alisaifee added a commit to alisaifee/flask-oauthlib that referenced this issue Nov 15, 2013

Fix for lepture#53
set request.client from token upon validating bearer token.

lepture added a commit that referenced this issue Nov 15, 2013

Fix for #53
set request.client from token upon validating bearer token.

lepture added a commit that referenced this issue Nov 15, 2013

@lepture lepture closed this Nov 15, 2013

@alisaifee

This comment has been minimized.

Copy link
Contributor Author

commented Nov 15, 2013

Thank you.

@lepture

This comment has been minimized.

Copy link
Owner

commented Nov 25, 2013

@alisaifee The bugfix version 0.4.1 is released.

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.