debug oauth

This commit is contained in:
Sebastian Hugentobler 2021-08-23 13:15:35 +02:00
parent 346af76b40
commit 7ee7846daa
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
4 changed files with 9 additions and 18 deletions

View File

@ -1,3 +0,0 @@
[template]
src = "dovecot-oauth2.conf.ext.tmpl"
dest = "/etc/dovecot/dovecot-oauth2.conf.ext"

View File

@ -1,6 +1,6 @@
auth_username_chars = {{getenv "ALLOWED_USERNAME_CHARS" "äöüabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@"}} auth_username_chars = {{getenv "ALLOWED_USERNAME_CHARS" "äöüabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@"}}
auth_username_format = %n auth_username_format = %n
auth_mechanisms = {{getenv "AUTH_MECHANISMS" "plain"}} auth_mechanisms = {{getenv "AUTH_MECHANISMS" "plain login"}}
!include auth-oauth2.conf.ext !include auth-oauth2.conf.ext
auth_verbose = yes auth_verbose = yes
auth_debug = yes auth_debug = yes

View File

@ -1,7 +1,13 @@
passdb { passdb {
driver = oauth2 driver = oauth2
mechanisms = plain mechanisms = oauthbearer xoauth2
args = /etc/dovecot/dovecot-oauth2.conf.ext args = /etc/dovecot/dovecot-oauth2.token.conf.ext
}
passdb {
driver = oauth2
mechanisms = plain login
args = /etc/dovecot/dovecot-oauth2.plain.conf.ext
} }
userdb { userdb {

View File

@ -1,12 +0,0 @@
grant_url = {{ getenv "GRANT_URL" }}
client_id = {{ getenv "CLIENT_ID" }}
client_secret = {{ getenv "CLIENT_SECRET" }}
tokeninfo_url = {{ getenv "TOKENINFO_URL" }}
introspection_url = {{ getenv "INTROSPECTION_URL" }}
introspection_mode = {{ getenv "INTROSPECTION_MODE" "post" }}
#force_introspection = yes
username_attribute = username
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
use_grant_password = yes
pass_attrs = host=127.0.0.1 proxy=y proxy_mech=xoauth2 pass=%{oauth2:access_token}
debug = yes