Details

    • Sprint:
      Keycloak Sprint 32, Keycloak Sprint 33
    • Story Points:
      1
    • Steps to Reproduce:
      Hide

      1. follow the steps in https://www.keycloak.org/docs/latest/authorization_services/#_getting_started_overview,

      2. navigate to http://localhost:8080/app-authz-vanilla

      3. enter the user name / password that were created in step 1, then click 'Log in'

      Show
      1. follow the steps in https://www.keycloak.org/docs/latest/authorization_services/#_getting_started_overview , 2. navigate to http://localhost:8080/app-authz-vanilla 3. enter the user name / password that were created in step 1, then click 'Log in'
    • Workaround Description:
      Hide

      Remove last slash from

      {auth-server-url}

      property in

      {keycloak.json}

      after obtaining the adapter configuration from the admin console.

      Show
      Remove last slash from {auth-server-url} property in {keycloak.json} after obtaining the adapter configuration from the admin console.
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      After I created the realm "hello-world-authz", a user and the client "app-authz-vanilla", I enabled the Authorization services on that client. When I tried to test the authorization by navigating to http://localhost:8080/app-authz-vanilla, it redirects me to the login page, which is good. But when I enter the user/password, and click 'Log in', I'm going to an error page, that shows the following error:

      Context Path:/app-authz-vanilla
      Servlet Path:/index.jsp
      Path Info:null
      Query String:null
      Stack Trace:
      java.lang.RuntimeException: Failed to obtain policy enforcer
      at org.keycloak.adapters.KeycloakDeployment.getPolicyEnforcer(KeycloakDeployment.java:539)
      ...

      Caused by: java.lang.RuntimeException: Could not obtain configuration from server http://localhost:8180/auth//realms/hello-world-authz/.well-known/uma2-configuration.
      at org.keycloak.authorization.client.AuthzClient.<init>(AuthzClient.java:253)
      ...
      Caused by: org.keycloak.authorization.client.util.HttpResponseException: Unexpected response from server: 404 / Not Found / Response from server:

      {"error":"RESTEASY003210: Could not find resource for full path: http://localhost:8180/auth//realms/hello-world-authz/.well-known/uma2-configuration"}

      at org.keycloak.authorization.client.util.HttpMethod.execute(HttpMethod.java:95)
      ...

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                pcraveiro Pedro Igor Silva
                Reporter:
                ydingaptos Yan Ding
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: