Skip to content

[FEATURE_REQUEST] change keycloak auth to be custom url instead of automatically appending /auth #564

Closed
@lgwapnitsky

Description

Is your feature request related to a problem? If so, please describe.

The new version of keycloak does not expose the /auth path by default. When pulling down the newest code, I have to go in and manually edit the file at src/utils/KeycloakAuth.js to remove the path. By default, it reads like this:

class KeycloakAuth {
  constructor() {
    const { auth } = getAppConfig();
    const { serverUrl, realm, clientId } = auth.keycloak;
    const initOptions = {
      url: `${serverUrl}/auth`, realm, clientId, onLoad: 'login-required',
    };

    this.keycloakClient = Keycloak(initOptions);
  }

but I remove the path in the url variable to read as such:

  constructor() {
    const { auth } = getAppConfig();
    const { serverUrl, realm, clientId } = auth.keycloak;
    const initOptions = {
      url: `${serverUrl}`, realm, clientId, onLoad: 'login-required',
    };

    this.keycloakClient = Keycloak(initOptions);
  }

I originally discovered this issue after filing ticket #520 and working through diagnostics

Describe the solution you'd like

remove the /auth path from KeycloakAuth.js, and change the instructions to have the user/administrator put in the full path, depending on the version of KC

Priority

Medium (Would be very useful)

Is this something you would be keen to implement

Maybe

Metadata

Assignees

No one assigned

    Labels

    📌 Keep Open[ISSUE][PR] Prevent auto-closing🦄 Feature Request[ISSUE] Suggestion for new feature, update or change

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions