bcgov / issuer-kit

Verifiable Credential Issuer Starter Kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

issuer-web is not recognizing the authentication.enabled property from the config.json

WadeBarnes opened this issue · comments

Even when authentication.enabled = false issuer-web still attempts to load the authentication.oidcSettings properties and create an oidc object.

When the authentication.oidcSettings properties are not included in the json the web page will display blank with the following console errors:
image

The issue seems to be with the code here:

const storeOptions: StoreOptions<RootState> = {
state: {
version: "1.0.0" // a simple property
},
modules: {
configuration,
credential,
invitation,
connection,
oidcStore: vuexOidcCreateStoreModule(
config.authentication.oidcSettings,
// Optional OIDC store settings
{
namespaced: true,
dispatchEventsOnWindow: true
}
)
}
};

The same issue exists in the same class within issuer-admin.

Workaround:

  • Provide the required fields for the authentication.oidcSettings properties, which are var requiredConfigProperties = ['authority', 'client_id', 'redirect_uri', 'response_type', 'scope'];.
  • Example:
      "authentication": {
        "enabled": false,
        "oidcSettings": {
          "authority": "not-used",
          "clientId": "not-used",
          "redirect_uri": "not-used",
          "responseType": "not-used",
          "scope": "not-used"
        }
      },
    

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.