Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-281

GitHub oAuth authorization does not work in CRW

XMLWordPrintable

    • Hide
      • set the Github provider in the Keycloak
      • create an user and set the client role
      • create a workspace and open iDE
      • go to Profile -> Preferences -> VCS
      • click on the button Generate key and upload it to GitHub and click on the OK button

      Expected behavior:

      • should be appeared the the form to GitHub authorization with correct content
        (Note: the screenshot is a example as expected result )

      Observed behavior:

      • there is Invalid Request:



      • Logs of keycloak pod:

        14:57:36,198 WARN [org.keycloak.events] (default task-55) type=IDENTITY_PROVIDER_RETRIEVE_TOKEN_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId=null, userId=null, ipAddress=10.0.148.220, error=User [b9d4f483-dafb-4c00-b387-a7f006a134c1] is not associated with identity provider [github].
        14:57:36,199 ERROR [org.keycloak.services.resources.IdentityBrokerService] (default task-55) User [b9d4f483-dafb-4c00-b387-a7f006a134c1] is not associated with identity provider [github].
        14:57:41,698 WARN [org.keycloak.events] (default task-55) type=CLIENT_INITIATED_ACCOUNT_LINKING_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId=[broker, account], userId=null, ipAddress=10.33.177.85, error=client_not_found
        15:14:18,117 WARN [org.keycloak.events] (default task-55) type=LOGIN_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId=null, userId=null, ipAddress=10.33.177.85, error=identity_provider_login_failure
        15:14:46,399 WARN [org.keycloak.events] (default task-55) type=LOGIN_ERROR, realmId=master, clientId=null, userId=null, ipAddress=10.33.177.85, error=expired_code, restart_after_timeout=true

      Show
      set the Github provider in the Keycloak create an user and set the client role create a workspace and open iDE go to Profile -> Preferences -> VCS click on the button Generate key and upload it to GitHub and click on the OK button Expected behavior: should be appeared the the form to GitHub authorization with correct content (Note: the screenshot is a example as expected result ) Observed behavior: there is Invalid Request : Logs of keycloak pod: 14:57:36,198 WARN [org.keycloak.events] (default task-55) type=IDENTITY_PROVIDER_RETRIEVE_TOKEN_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId=null, userId=null, ipAddress=10.0.148.220, error=User [b9d4f483-dafb-4c00-b387-a7f006a134c1] is not associated with identity provider [github] . 14:57:36,199 ERROR [org.keycloak.services.resources.IdentityBrokerService] (default task-55) User [b9d4f483-dafb-4c00-b387-a7f006a134c1] is not associated with identity provider [github] . 14:57:41,698 WARN [org.keycloak.events] (default task-55) type=CLIENT_INITIATED_ACCOUNT_LINKING_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId= [broker, account] , userId=null, ipAddress=10.33.177.85, error=client_not_found 15:14:18,117 WARN [org.keycloak.events] (default task-55) type=LOGIN_ERROR, realmId=501157f8-e88e-4b70-8538-cf21bbe70062, clientId=null, userId=null, ipAddress=10.33.177.85, error=identity_provider_login_failure 15:14:46,399 WARN [org.keycloak.events] (default task-55) type=LOGIN_ERROR, realmId=master, clientId=null, userId=null, ipAddress=10.33.177.85, error=expired_code, restart_after_timeout=true

      • After update version of Keycloak the GitHub oAuth authorization doesn't work properly in the CRW

            Unassigned Unassigned
            oshmarai Shmaraiev Oleksandr
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: