Skip to content

Unusual oauth2 error -- redirect_uri_mismatch on token request #86

@jkingsman

Description

@jkingsman

When attempting to use the oauth2 flow, I authorize:

https://www.tumblr.com/oauth2/authorize?client_id=<client_id_redacted>&response_type=code&scope=basic&state=<state_redacted>&redirect_uri=<redacted_uri>

My redirect URI is exactly what's in place in my application config for both default callback and oauth2 redirect URLs. That works fine; I get my code and verify my state. Then I attempt a grant (as exemplified in https://www.tumblr.com/docs/en/api/v2#step-three-retrieve-an-access-token):

curl \
    -F grant_type=authorization_code \
    -F code=<code_redacted> \
    -F client_id=<client_id_redacted> \
    -F client_secret=<client_secret_redacted> \
    https://api.tumblr.com/v2/oauth2/token

and then I get

{"error":"redirect_uri_mismatch","error_description":"The redirect URI is missing or do not match","error_uri":"http:\/\/tools.ietf.org\/html\/rfc6749#section-4.1.3"}

I'm really confused by this; the oauth redirect has already happened successfully (so I'm assuming that means Tumblr's happy with my redirect URI), but there's no redirect URI involved with redeeming my token for credentials... right?

Thanks for any help you can offer!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions