Skip to content

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

@MostHated

Description

@MostHated

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.

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