Skip to content

Commit

Permalink
Switch to newer O365 scope values
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrob committed Aug 5, 2024
1 parent fd0491b commit 32865ae
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions emailproxy.config
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ documentation = Accounts are specified using your email address as the section h

Advanced account configuration:
- For most configurations the default `redirect_uri` value of `http://localhost` is correct, unless you have
explicitly set your OAuth 2.0 client to use a different address here (which you will need to manually redirect to
the proxy). Please also note that this address is `http` and not `https` (which is not supported unless you provide
a secure connection yourself outside of the proxy using an external tool).
explicitly set the OAuth 2.0 client configuration with your provider to use a different address for this purpose
(e.g., redirecting via an external domain). If this is the case, you will need to manually redirect this to the
proxy. Please note that in most cases the address is indeed `http://localhost`, not `https`.

- When using the `--local-server-auth` option you will need to either run the proxy with additional privileges to
use the implicit default port 80 (e.g., via sudo) or specify a different port (and/or a different host if needed) -
Expand All @@ -194,14 +194,6 @@ documentation = Accounts are specified using your email address as the section h
[[email protected]]
permission_url = https://login.microsoftonline.com/common/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/common/oauth2/v2.0/token
oauth2_scope = https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access
redirect_uri = http://localhost
client_id = *** your client id here ***
client_secret = *** your client secret here ***

[[email protected]]
permission_url = https://login.microsoftonline.com/common/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/common/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 = *** your client id here ***
Expand Down

0 comments on commit 32865ae

Please sign in to comment.