changeset 21696:b421793ac7cf

auth: Export oauth2 pass_attrs to passdb reply
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Thu, 23 Feb 2017 11:29:17 +0200
parents 302c931ee755
children 0d071dadb856
files src/auth/db-oauth2.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/db-oauth2.c	Thu Feb 23 01:24:43 2017 +0200
+++ b/src/auth/db-oauth2.c	Thu Feb 23 11:29:17 2017 +0200
@@ -497,6 +497,7 @@
 	if (db_oauth2_validate_username(req, &error) &&
 	    db_oauth2_user_is_enabled(req, &error) &&
 	    db_oauth2_token_in_scope(req, &error) &&
+	    db_oauth2_template_export(req, &error) == 0 &&
 	    !req->failed) {
 		req->result = PASSDB_RESULT_OK;
 	} else {