Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with requests.post('{}/token'.format(ISSUER),
- headers={'Authorization': 'Basic {}'.format(jddjdjdjd)},
- data={'grant_type': 'authorization_code', 'code': authorization_code, 'redirect_uri': REDIRECT_URI},
- verify=CA_PATH) as response:
- response_json = response.json()
- access_token_1, refresh_token_1, id_token_1 = get_tokens(response_json)
- self.assertIn('access_token', response_json)
- self.assertIn('id_token', response_json)
- self.assertIn('refresh_token', response_json)
- self.assertEqual(response.status_code, 200)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement