Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WadeBarnes opened this issue Jan 17, 2024 · 1 comment
Labels

Comments

@WadeBarnes
Copy link
Member

WadeBarnes commented Jan 17, 2024

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"
        }
      },
    
WadeBarnes added a commit to esune/essential-services-delivery that referenced this issue Jan 18, 2024
- Apply workaround for bcgov/issuer-kit#441

Signed-off-by: Wade Barnes <wade@neoterictech.ca>
Copy link

stale bot commented Mar 18, 2024

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 stale bot added the wontfix This will not be worked on label Mar 18, 2024
@esune esune added pinned and removed wontfix This will not be worked on labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Assignment Ready
Development

No branches or pull requests

2 participants