Skip to content

Commit

Permalink
fix url not found if plain load is used
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Dec 21, 2023
1 parent 3f0c800 commit e9a7796
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/oidc-agent/oidcd/oidcd_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e9a7796

Please sign in to comment.