question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Token Authentication link does not load

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janscascommented, Jun 29, 2021

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.

0reactions
seve-martinezcommented, Jul 6, 2021

@janscas Thanks for the reply. Closing this ticket because the SSL issue is on my side and nothing to do with the O365 library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Private token authentication doesn't work with git-ref artifacts ...
Usually it is possible to authenticate using the Private token from Profile > Account. This does not work for the git-ref artifacts URL...
Read more >
Resolve API Gateway REST API 403 “Missing Authentication ...
When I try to invoke my Amazon API Gateway REST API, I get 403 "Missing Authentication Token" error messages. How do I troubleshoot...
Read more >
I'm Having Problems with My Hardware Token for Two-Step ...
Solution: Press the token's button again and enter the new passcode that appears. The token is not enrolled for use with your NetID....
Read more >
Token Based Authentication Made Easy - Auth0
Tokens are signed to protect against manipulation, they are not encrypted. What this means is that a token can be easily decoded and...
Read more >
Links on web site that can login into app with a token or fall ...
1 Answer 1 · The link that is used to open your app needs to be kept private. · The contents of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found