debug oauth

This commit is contained in:
Sebastian Hugentobler 2021-08-23 13:15:48 +02:00
parent 7ee7846daa
commit 277f23fb13
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
4 changed files with 27 additions and 0 deletions

View File

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

View File

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

View File

@ -0,0 +1,10 @@
grant_url = {{ getenv "GRANT_URL" }}
client_id = {{ getenv "CLIENT_ID" }}
client_secret = {{ getenv "CLIENT_SECRET" }}
introspection_url = {{ getenv "INTROSPECTION_URL" }}
introspection_mode = {{ getenv "INTROSPECTION_MODE" "post" }}
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

View File

@ -0,0 +1,11 @@
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" }}
username_attribute = username
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
use_grant_password = no
pass_attrs = pass=%{oauth2:access_token}
debug = yes