Hello there! I would like to get some help on 3 legged OAuth flow. So im trying to make a 3 legged OAuth flow, here’s the code:

request_tokens = client.http.request(
            "POST",
            "",
            "oauth/request_token",
            auth=True
        )
        oauth_token, oauth_token_secret, oauth_callback_confirmed = request_tokens.split("&")
        params = {"oauth_token": oauth_token}


        res = client.http.request(
            "GET",
            "",
            "oauth/authorize",
            params=params,
            auth=True
        )
        print(res)

The second step(oauth/authorize) cause a Forbidden error. When i print res.text it printed an html code, I think this is the main error: The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake. Note that i would like to make it myself using raw api rather then using tools

Has been resolved

Would you care to share what fixed it for you - this could be really helpful for other people! :slight_smile:

Alright, for the second step i supposed to send the url rather then making the GET oauth/authorize request and let the user choose which account to get authorize by the application!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.