WP-API / OAuth1

OAuth server implementation for WP API
http://oauth1.wp-api.org/
327 stars 109 forks source link

I get back 404 every time if I try with rauth, but I tried with requests and it worked fine? #218

Open MostHated opened 5 years ago

MostHated commented 5 years ago

I ran this, the top one comes back a 200, the bottom one always a 404 saying "missing parameter oauth_token. Any ideas on what I can check? I have been going through the forums and posts for hours now, trying different configs within nginx, etc. I am at a loss now. (the keys and site were, of course, changed on purpose. Everything is as it should be)

    para0 = {
                'name':'Verifier',
                'consumer_key':'kl****K79Got6',
                'consumer_secret':'B9******boKvvEd1IIvV87ZfaPJ3oeBO91kzVp6X48c6a3Bw',
                'request_token_url':'https://mysite/oauth1/token',
                'access_token_url':'https://mysite/oauth1/access',
                'authorize_url':'https://mysite/oauth/authorize',
                'base_url':'https://mysite'}

    para1 = OAuth1Service(
                name='Verifier',
                consumer_key='kl5*****9Got6',
                consumer_secret='B992qbFS**********7ZfaPJ3oeBO91kzVp6X48c6a3Bw',
                request_token_url='https://mysite/oauth1/token',
                access_token_url='https://mysite/oauth1/access',
                authorize_url='https://mysite/oauth/authorize',
                base_url='https://mysite')

    r = requests.get('http://mysite/oauth1/authorize', params=para0)
    print(r.text)
    oauth_token, oauth_token_secret = para1.get_request_token()
    print(oauth_token, oauth_token_secret)

It is strange, I can't get to Oauth1 from postman, but I can get to 2.