Remove unneeded client id and secret
This commit is contained in:
parent
a31fbf98ed
commit
de24679c61
|
@ -25,12 +25,7 @@ This example assumes you have:
|
|||
|
||||
!!! example "Setup Instructions"
|
||||
|
||||
=== "1. Authentik"
|
||||
1. Create a new OAuth2 provider
|
||||
2. Note the client id and client secret
|
||||
3. Set the allowed redirect url to the equivalent of `https://roundcube.example.com/index.php/login/oauth` for your RoundCube instance.
|
||||
|
||||
=== "2. Docker Mailserver"
|
||||
=== "1. Docker Mailserver"
|
||||
Edit the following values in `mailserver.env`:
|
||||
```env
|
||||
# -----------------------------------------------
|
||||
|
@ -41,19 +36,15 @@ This example assumes you have:
|
|||
# 1 => OAUTH2 authentication is enabled
|
||||
ENABLE_OAUTH2=1
|
||||
|
||||
# empty => verySecretId
|
||||
# Specify the OAuth2 client ID
|
||||
OAUTH2_CLIENT_ID=<insert client id here>
|
||||
|
||||
# empty => verySecretSecret
|
||||
# Specify the OAuth2 client secret
|
||||
OAUTH2_CLIENT_SECRET=<insert client secret here>
|
||||
|
||||
# empty => https://oauth2.example.com/userinfo/
|
||||
# Specify the user info endpoint URL of the oauth2 provider
|
||||
OAUTH2_INTROSPECTION_URL=https://authentik.example.com/application/o/userinfo/
|
||||
```
|
||||
|
||||
=== "2. Authentik"
|
||||
1. Create a new OAuth2 provider
|
||||
2. Note the client id and client secret
|
||||
3. Set the allowed redirect url to the equivalent of `https://roundcube.example.com/index.php/login/oauth` for your RoundCube instance.
|
||||
|
||||
=== "3. Roundcube"
|
||||
Add the following to `oauth2.inc.php` ([documentation](https://github.com/roundcube/roundcubemail/wiki/Configuration)):
|
||||
|
||||
|
|
|
@ -613,14 +613,6 @@ Enable or disable `getmail`.
|
|||
- **empty** => OAUTH2 authentication is disabled
|
||||
- 1 => OAUTH2 authentication is enabled
|
||||
|
||||
##### OAUTH2_CLIENT_ID
|
||||
|
||||
- => Specify the OAuth2 client ID
|
||||
|
||||
##### OAUTH2_CLIENT_SECRET
|
||||
|
||||
- => Specify the OAuth2 client secret
|
||||
|
||||
##### OAUTH2_INTROSPECTION_URL
|
||||
|
||||
- => Specify the user info endpoint URL of the oauth2 provider. E.g. `https://oauth2.example.com/userinfo/`, where the trailing slash is MANDATORY (at least for Authentik)
|
||||
|
|
|
@ -426,15 +426,6 @@ GETMAIL_POLL=5
|
|||
# 1 => OAUTH2 authentication is enabled
|
||||
ENABLE_OAUTH2=
|
||||
|
||||
# empty => verySecretId
|
||||
# Specify the OAuth2 client ID
|
||||
OAUTH2_CLIENT_ID=
|
||||
|
||||
# empty => verySecretSecret
|
||||
# Specify the OAuth2 client secret
|
||||
OAUTH2_CLIENT_SECRET=
|
||||
|
||||
# empty => https://oauth2.example.com/userinfo/
|
||||
# Specify the user info endpoint URL of the oauth2 provider. The trailing slash is MANDATORY (at least for Authentik)
|
||||
OAUTH2_INTROSPECTION_URL=
|
||||
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
client_id =
|
||||
client_secret =
|
||||
introspection_url =
|
||||
|
|
|
@ -154,8 +154,6 @@ function __environment_variables_general_setup() {
|
|||
function _environment_variables_oauth2() {
|
||||
_log 'debug' 'Setting OAUTH2-related environment variables now'
|
||||
|
||||
VARS[OAUTH2_CLIENT_ID]="${OAUTH2_CLIENT_ID:=}"
|
||||
VARS[OAUTH2_CLIENT_SECRET]="${OAUTH2_CLIENT_SECRET:=}"
|
||||
VARS[OAUTH2_INTROSPECTION_URL]="${OAUTH2_INTROSPECTION_URL:=}"
|
||||
}
|
||||
|
||||
|
|
|
@ -32,8 +32,6 @@ function setup_file() {
|
|||
# Add OAUTH2 configuration so that Dovecot can reach out to our mock provider (CONTAINER2)
|
||||
local ENV_OAUTH2_CONFIG=(
|
||||
--env ENABLE_OAUTH2=1
|
||||
--env OAUTH2_CLIENT_ID=mailserver
|
||||
--env OAUTH2_CLIENT_SECRET=ah_yes___secret
|
||||
--env OAUTH2_INTROSPECTION_URL=http://oauth2.example.test/
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue