Closed Goooler closed 1 year ago
It's
https://login.microsoftonline.com/common/oauth2/v2.0/authorizeauthorize?
client_id=e647013a-ada4-4114-b419-e43d250f99c5
&redirect_uri=msauth://co
but should be
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
redirect_uri=msauth://com.fsck.k9/Dx8yUsuhyU3dYYba1aA16Wxu5eM=
&client_id=e647013a-ada4-4114-b419-e43d250f99c5
&response_type=code
&login_hint=wangzongle@outlook.com
&state=o-DmeBFeXOgS9nuAhKXvBw
&nonce=PW3RaEFL_3m7taj-1W-SDw
&scope=https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access
&code_challenge=lgl1mjypaSyTQy9YXeYrAHrOlP9TuzhEL_akswS2A6A
&code_challenge_method=S256
Now it's
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?
client_id=e647013a-ada4-4114-b419-e43d250f99c5
&redirect_uri=msauth://com.fsck.k9.debug/VZF2DYuLYAu4TurFd6usQB2JPts%3D
&scope=https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access
&response_type=code
msauth://com.fsck.k9.debug/VZF2DYuLYAu4TurFd6usQB2JPts%3D?code=M.C107_BAY.2.bf9268c8-0af1-d96d-5492-64149183cf75
Response{protocol=h2, code=404, message=, url=https://login.microsoftonline.com/common/oauth2/v2.0/access_token}
{
"error": "invalid_client",
"error_description": "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app 'e647013a-ada4-4114-b419-e43d250f99c5'.\r\nTrace ID: c6d27140-7f11-49fc-8673-18a778c46c00\r\nCorrelation ID: 615acf22-2275-4128-b0a0-eb1cc27ef9e0\r\nTimestamp: 2023-07-20 09:15:18Z",
"error_codes": [
7000215
],
"timestamp": "2023-07-20 09:15:18Z",
"trace_id": "c6d27140-7f11-49fc-8673-18a778c46c00",
"correlation_id": "615acf22-2275-4128-b0a0-eb1cc27ef9e0",
"error_uri": "https://login.microsoftonline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