From e9a7796f81f35a66d84a6580ffa44a800435ebba Mon Sep 17 00:00:00 2001 From: zachmann Date: Thu, 21 Dec 2023 16:42:53 +0100 Subject: [PATCH] fix url not found if plain load is used --- src/oidc-agent/oidcd/oidcd_handler.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/oidc-agent/oidcd/oidcd_handler.c b/src/oidc-agent/oidcd/oidcd_handler.c index 31fa447e..e4e98ed7 100644 --- a/src/oidc-agent/oidcd/oidcd_handler.c +++ b/src/oidc-agent/oidcd/oidcd_handler.c @@ -267,13 +267,13 @@ oidc_error_t addAccount(struct ipcPipe pipes, struct oidc_account* account, oidc_setArgNullFuncError(__func__); return oidc_errno; } + if (obtainIssuerConfig(account) != OIDC_SUCCESS) { + return oidc_errno; + } + if (!strValid(account_getTokenEndpoint(account))) { + return oidc_errno; + } if (!plain_load) { - if (obtainIssuerConfig(account) != OIDC_SUCCESS) { - return oidc_errno; - } - if (!strValid(account_getTokenEndpoint(account))) { - return oidc_errno; - } if (getAccessTokenUsingRefreshFlow(account, FORCE_NEW_TOKEN, NULL, NULL, pipes) == NULL) { account_setDeath(account,