]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mech-oauth2 - Validate credentials in mech
authorAki Tuomi <aki.tuomi@open-xchange.com>
Sun, 25 Oct 2020 16:55:46 +0000 (18:55 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:12 +0000 (12:34 +0200)
Simplifies auth workflow greatly by not having to pretend
verifying tokens as passwords.

src/auth/mech-oauth2.c

index 9bd3527b6a45c43ff9a747b60ccba53a89e072e6..4d83af61ff96043a0b4326106c42f957a17bfacd 100644 (file)
@@ -102,7 +102,7 @@ mech_oauth2_verify_token_continue(struct db_oauth2_request *db_request,
        struct auth_request *auth_request = &oauth2_req->auth;
        if (result != PASSDB_RESULT_OK) {
                e_error(auth_request->mech_event, "%s", error);
-               oauth2_req->callback(result, NULL, 0, auth_request);
+               oauth2_verify_callback(result, NULL, 0, auth_request);
                return;
        }
        db_request->auth_request->passdb_success = TRUE;