OAuth2 Token Generation in Django 1.11

14 views
Skip to first unread message

Haroon Ahmed

unread,
Apr 10, 2018, 1:38:46 AM4/10/18
to Django users
Hi,

    I am using Django 1.9.8 and implemented OAuth2, but when i upgrade django to 1.11 my to OAuth2 Token generation gets errors,
    this is my code to generate token:
    
   data = [
      ('grant_type', 'password'),
      ('username', userName),
      ('password', password),
    ]
   accessTokenObj = requests.post(coreUrl, data=data, verify=False, auth=(DjangoApp_ClientId, DjangoApp_ClientSecret))

    Any kind of hep will be appreciated in advance.

Regards,
Haroon Ahmed
Reply all
Reply to author
Forward
0 new messages