Advertisement
Guest User

Untitled

a guest
Dec 25th, 2022
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. print('> Using Authorization Code flow')
  2.  
  3. authorization_url = flow_data['authorizationUrl']
  4. token_url = flow_data['tokenUrl']
  5.  
  6. callback_uri = 'http://127.0.0.1:5000/oauth/callback'
  7.  
  8. authorization_redirect_url = authorization_url + '?response_type=code&client_id=' + \
  9.     client_id + '&redirect_uri=' + \
  10.     callback_uri + '&scope=' + '%20'.join(scopes)
  11.  
  12. print("> Open this in your browser: " + authorization_redirect_url)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement