Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-8843

[fiware-stackoverflow] authentication on spagobi using keyrock

    Details

      Description

      Created question in FIWARE Q/A platform on 24-03-2016 at 18:03
      Please, ANSWER this question AT https://stackoverflow.com/questions/36206819/authentication-on-spagobi-using-keyrock

      Question:
      authentication on spagobi using keyrock

      Description:
      We're having troubles authenticating on SpagoBI using KeyRock as authentication provider. We followed the guide here:

      http://spagobi.readthedocs.org/en/latest/admin/README/index.html

      The redirection to KeyRock works, but after we enter the user credentials there is an error which says:

      {"state": "None", "error": "invalid_redirect_uri"}

      (HTTP 400)

      The configuration page in KeyRock looks like this:

      keyrock screenshot

      We've simply copied client id, secret and the other parameters required in the oauth2.config.properties.

      Note: the default urls for the public instance of KeyRock were wrong, we had to add /oauth2 to make them work, probably they were prepared for a previous version of KeyRock.

      EDIT 30-03-2016

      Some more information:

      we're using the public instance of KeyRock
      we're using a private
      instance of SpagoBI deployed on our servers using the Docker
      container available in docker hub
      This is the the content of our
      oauth2.config.properties
      CLIENT_ID = 123456
      SECRET = 123456
      REDIRECT_URI = http://192.168.196.15:8080/SpagoBI/servlet/AdapterHTTP?PAGE=LoginPage&NEW_SESSION=TRUE
      TOKENS_URL = https://account.lab.fiware.org/api/v1/tokens.json
      APPLICATIONS_BASE_URL = https://account.lab.fiware.org/oauth2/applications/
      AUTHORIZE_BASE_URL = https://account.lab.fiware.org/oauth2/authorize
      GET_ACCESS_TOKEN_URL = https://account.lab.fiware.org/oauth2/token
      GET_USER_INFO_URL = https://account.lab.fiware.org/oauth2/user
      APPLICATION_NAME = SpagoBI
      ADMIN_EMAIL = fiwarelab@email
      ADMIN_PASSWORD = fiwarelab@password
      We've add the /oauth2/ part in the addresses, otherwhise we would get a 404 error on the redirect to KeyRock.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 15:09|CREATED monitor | # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 15:09|CREATED monitor | # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 18:06|UPDATED status: transition Answer| # answers= 1, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2017-05-22 21:06|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            zerbetto Davide Zerbetto
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: