O365 auth Caught exception while requesting OAuth 2.0 #312
davidstanaway started this conversation in General
Replies: 2 comments 3 replies
-
| Expired certs might mean your date and time is not set correctly. Verify that your host's clock is accurate. Coincidentally I am doing the same thing: testing with Thunderbird with intent to deploy for a coworker who is metaphorically married to Eudora. |
Beta Was this translation helpful? Give feedback.
3 replies
-
| In addition to the date/time suggestion (which is valid), I'd also recommend taking a look at previous similar issues (e.g., this one). You might benefit from installing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Caught exception while requesting OAuth 2.0 credentials for account my@address.com: URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)'))
[my@address.com]
permission_url = https://login.microsoftonline.com/mytenantid/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/mytenantid/oauth2/v2.0/token
oauth2_scope = https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access
redirect_uri = http://localhost
client_id = myappid
[emailproxy]
use_login_password_as_client_credentials_secret = True
Email client is thunderbird with IMAP (Will be using same config for someone that needs to use Eudora [Don't ask!] once validated and I am happy with the config.
App registration has these permissions
Microsoft Graph
IMAP.AccessAsUser.All | Delegated | Read and write access to mailboxes via IMAP.
POP.AccessAsUser.All | Delegated | Read and write access to mailboxes via POP.
SMTP.Send | Delegated | Send emails from mailboxes using SMTP AUTH.
User.Read
Log context: Authentication is successful, first use has be approve the application which is done.
2024-12-14 00:08:16: Authorisation request received for my@address.com (interactive mode)
2024-12-14 00:08:16: Please authorise your account my@address.com from the menu
2024-12-14 00:08:16: Authorisation request received for my@address.com (interactive mode)
2024-12-14 00:08:16: Please authorise your account my@address.com from the menu
2024-12-14 00:09:43: Returning authorisation request result for my@address.com
2024-12-14 00:09:43: Returning authorisation request result for my@address.com
2024-12-14 00:09:43: Authentication completed for my@address.com
2024-12-14 00:09:43: Caught exception while requesting OAuth 2.0 credentials for account my@address.com: URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)'))
2024-12-14 00:09:43: Caught exception while requesting OAuth 2.0 credentials for account my@address.com: URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)'))
I am not sure what certificate is expired. the tenant/directory ID is correct and the login URLs are successfully accessed in my browser without cert issues.
Beta Was this translation helpful? Give feedback.
All reactions