Closed rqi14 closed 2 months ago
You've changed the oauth2_scope
values – are you sure these are correct?
You've changed the
oauth2_scope
values – are you sure these are correct?
Yes. I copied from the admin centre. I used microsoft 365 operated by 21vianet. This service has different endpoints
Still, have you tried other scope values here? From the name, it sounds like these are Graph permissions, which are different to IMAP etc. Same with the other URLs - worth experimenting here. From a quick search it seems like there are lots of options that are in use in the China region.
The other thing is that these permissions are set as Delegated rather than Application. Worth taking another look at this too.
Still, have you tried other scope values here? From the name, it sounds like these are Graph permissions, which are different to IMAP etc. Same with the other URLs - worth experimenting here. From a quick search it seems like there are lots of options that are in use in the China region.
The other thing is that these permissions are set as Delegated rather than Application. Worth taking another look at this too.
Hi. Thanks for looking into this.
The problem is indeed the scope. I was informed by the microsoft 365 tech support that the correct scope to use is https://partner.outlook.cn/.default
for 21vianet, and for microsoft microsoft 365 it is https://outlook.office365.com/.default
. It is specified in the document
Thanks for following up – I'm glad you were able to resolve this. I'll add a note to the configuration file mentioning different values for different regions and referring to this issue.
One other thing: you probably still want to add offline_access
to ensure you don't need to reauthenticate each time the token needs renewing.
Hi. I struggle with setting up with microsoft 365 (business) accounts. Could you please help me?
The error I am encountering is
No Authenticate failed
after web authentication.This this the error log
The config file (without the documentation)
The EntraID permissions have been set according to tutorial![image](https://github.com/simonrob/email-oauth2-proxy/assets/26152437/f990b066-025f-45a8-921a-ee66abeb0827)