oauth2ms
oauth2ms copied to clipboard
Problem configuring URLs for Office365
trafficstars
While trying to configure oauth2ms, I get the following error after authenticating in my office365 server: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '20460e5d-ce91-49af-a3a5-70b6be7486d1'.
This is with the following values in the config (I'm using Evolution's client id, and it works in other scripts like mutt_oauth2):
{
"tenant_id": "common",
"client_id": "20460e5d-ce91-49af-a3a5-70b6be7486d1",
"client_secret": "",
"redirect_host": "localhost",
"redirect_port": "5000",
"redirect_path": "/GetToken/",
"scopes": ["https://outlook.office365.com/IMAP.AccessAsUser.All", "https://outlook.office365.com/SMTP.Send"]
}
I'm confused about the redirect uri: shouldn't it be something like https://login.microsoftonline.com/common/oauth2/nativeclient? This is what mutt_oauth2 uses. But then, I don't have a port or a path...
Thanks in advance!