changeset 21730:d6ed6978cbe7

auth: oauth2 - introspection lookup error should be internal failure Not the default, which is "password mismatch".
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 16 Mar 2017 00:25:19 +0200
parents dfcfdbbe1fd1
children 58f7612b0658
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 Mar 16 00:15:10 2017 +0200
+++ b/src/auth/db-oauth2.c	Thu Mar 16 00:25:19 2017 +0200
@@ -510,6 +510,7 @@
 
 	if (!result->success) {
 		/* fail here */
+		req->result = PASSDB_RESULT_INTERNAL_FAILURE;
 		req->failed = TRUE;
 		db_oauth2_callback(req, FALSE, result->error);
 		return;