Skip to content

Bug in require_oauth decorator? #3

Open
@daniel-lundin

Description

@daniel-lundin

First, thanks for your great efforts in this project.

I've found that I don't need to provide oauth_token_secret when requiring an access token from an authorized request token.

The require_oauth decorator looks strange to me.
The return value from oauthlib.oauth1.rfc5849.Server.verify_request is actually a tuple so if-statement will always run:
https://github.com/ib-lundgren/flask-oauthprovider/blob/master/flask_oauthprovider.py#L286

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions