issuer-kit icon indicating copy to clipboard operation
issuer-kit copied to clipboard

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

Open WadeBarnes opened this issue 1 year ago • 1 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: https://github.com/bcgov/issuer-kit/blob/edee62127449f125ae428587f09087bcf9722f7b/issuer-web/src/store/index.ts#L17-L35

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"
        }
      },
    

WadeBarnes avatar Jan 17 '24 22:01 WadeBarnes

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.

stale[bot] avatar Mar 18 '24 20:03 stale[bot]