Token Authentication link does not load
See original GitHub issueI have registered my app in the App Registration and have given it the basic auth Mail.ReadWrite Mail.Send User.Read
I’ve also used delegated access. Basically I’ve recreated the example app in the README to a T.
I then took the generated client ID and client secret and used the following code:
credentials = ('code1', 'code2') account = Account(credentials) if account.authenticate(scopes=['basic', 'message_all']): print('Authenticated!')
Which then opens up a link. The link will ask me to select a login (I have several for Azure) and I select the one where I registered the app. However, the link does not load. It just ends up at a white screen and never progresses or provides a token. If I paste the link I get the following response:
Something go wrong. Please try again.
Unable to fetch auth token. Error: HTTPSConnectionPool(host='login.microsoftonline.com', port=443): Max retries exceeded with url: /common/oauth2/v2.0/token (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))
Is this something with the link generation? Perhaps user error? I have tried several browsers (Chrome, Edge, MS Explorer) with no change in behavior.
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
The basic and default flow asks you to visit a link and authenticate and the console will wait for a response. Just copy the link after authenticating ( the link on the blank page) and paste it on the console. then hit enter.
@janscas Thanks for the reply. Closing this ticket because the SSL issue is on my side and nothing to do with the O365 library.