Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MostHated opened this issue Oct 9, 2018 · 0 comments

Comments

@MostHated
Copy link

MostHated commented Oct 9, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant