-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make redirect_uri optional for flows that don't use it
- Loading branch information
Showing
2 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,9 +83,9 @@ local_address = 127.0.0.1 | |
[Account setup] | ||
documentation = Accounts are specified using your email address as the section heading (e.g., [[email protected]], | ||
etc, below). Account usernames (i.e., email addresses) must be unique - only one entry per account is permitted. | ||
Each account section must provide values for `permission_url`, `token_url`, `oauth2_scope` and `redirect_uri`. If | ||
you are adding an account for a service other than the examples shown below then the provider's documentation should | ||
provide these details. | ||
Each account section must provide values for at least `token_url`, `oauth2_scope` and `client_id`. Depending on the | ||
OAuth 2.0 flow you are using, other values may also be required (see examples below). If you are adding an account | ||
for a service other than the examples shown below then the provider's documentation should provide these details. | ||
|
||
You will also need to add your own `client_id` and `client_secret` values as indicated below. These can either be | ||
reused from an existing source (such as another email client that supports OAuth 2.0), or you can register and use | ||
|
@@ -228,7 +228,6 @@ documentation = *** note: this is an advanced O365 account example; in most case | |
token_url = https://login.microsoftonline.com/*** your tenant id here ***/oauth2/v2.0/token | ||
oauth2_scope = https://outlook.office365.com/.default | ||
oauth2_flow = client_credentials | ||
redirect_uri = http://localhost | ||
client_id = *** your client id here *** | ||
client_secret = *** your client secret here *** | ||
|
||
|
@@ -237,7 +236,6 @@ documentation = *** note: this is an advanced O365 account example; in most case | |
token_url = https://login.microsoftonline.com/*** your tenant id here ***/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 | ||
oauth2_flow = password | ||
redirect_uri = http://localhost | ||
client_id = *** your client id here *** | ||
client_secret = *** your client secret here *** | ||
|
||
|
@@ -246,7 +244,6 @@ documentation = *** note: this is an advanced Google account example; in most ca | |
token_url = https://oauth2.googleapis.com/token | ||
oauth2_scope = https://mail.google.com/ | ||
oauth2_flow = service_account | ||
redirect_uri = http://localhost | ||
client_id = file | ||
client_secret = *** your /path/to/service-account-key.json here *** | ||
|
||
|
@@ -255,7 +252,6 @@ documentation = *** note: this is an advanced Google account example; in most ca | |
token_url = https://oauth2.googleapis.com/token | ||
oauth2_scope = https://mail.google.com/ | ||
oauth2_flow = service_account | ||
redirect_uri = http://localhost | ||
client_id = key | ||
client_secret = *** your pasted service account JSON key file contents here, | ||
making sure to indent all lines by at least one space *** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters