Skip to content

Twitter Three-legged OAuth Example has a flaw #24

Open
@bear

Description

@bear

As currently shown the example will always fail after the pincode is given with a 401 error. The reason is that oAuth v1.0a requires that the oauth_verifier parameter be present in the POST that is making the access token request.

The fix is to add the it as part of the body parameter:

resp, content = client.request(access_token_url, "POST", body="oauth_verifier=%s" % oauth_verifier)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions