oauth proxy auth

This commit is contained in:
Sebastian Hugentobler 2021-08-23 00:05:44 +02:00
parent cae78bb2cd
commit d0f2cfde31
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
passdb { passdb {
driver = oauth2 driver = oauth2
mechanisms = xoauth2 oauthbearer mechanisms = plain
args = /etc/dovecot/dovecot-oauth2.conf.ext args = /etc/dovecot/dovecot-oauth2.conf.ext
} }

View File

@ -7,5 +7,5 @@ introspection_mode = {{ getenv "INTROSPECTION_MODE" "post" }}
#force_introspection = yes #force_introspection = yes
username_attribute = email username_attribute = email
tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt tls_ca_cert_file = /etc/ssl/certs/ca-certificates.crt
use_grant_password = no use_grant_password = yes
pass_attrs = pass=%{oauth2:access_token} pass_attrs = host=127.0.0.1 proxy=y proxy_mech=xoauth2 pass=%{oauth2:access_token}