Skip to content

Commit

Permalink
provider_url is required
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Nov 14, 2024
1 parent 1a10b44 commit a658526
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/oidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ int oidc_client_init(uv_loop_t *loop, oidc_client_t *clt,
int oidc_client_set_cfg(oidc_client_t *clt, const ziti_jwt_signer *cfg) {
free_ziti_jwt_signer(&clt->signer_cfg);

if (cfg->provider_url == NULL) {
return ZITI_INVALID_CONFIG;
}

clt->signer_cfg.client_id = cfg->client_id ? strdup(cfg->client_id) : NULL;
clt->signer_cfg.provider_url = strdup(cfg->provider_url);
clt->signer_cfg.audience = cfg->audience ? strdup(cfg->audience) : NULL;
Expand Down

0 comments on commit a658526

Please sign in to comment.