Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-20289

Connection wizard: Cannot log into v3 STG

XMLWordPrintable

    • Hide
      1. ASSERT: make sure that you can log into https://console.stg.openshift.com via web-ui
      2. EXEC: use an existing connection to https://console.stg.openshift.com
      3. EXEC: in case you're using an existing connection: launch application wizard and pick your connection to stg and hit "Next"
      4. ASSERT: you're told to obtain an API token
      5. EXEC: hit "retrieve", log in, copy the token in the dialog and paste it into the form
      6. EXEC: hit "Next"
        Result:

        You're told that you need to get a new token.
        (Repeat login in, copy/pasting token and trying to log in. Get the above)

      In the Eclipse log you'll find the following for each failed attempt:

      com.openshift.restclient.authorization.UnauthorizedException: "You must obtain an API token by visiting https://api.stg.openshift.com/oauth/token/request"
      	at com.openshift.internal.restclient.authorization.OpenShiftAuthorizationRedirectStrategy.isRedirected(OpenShiftAuthorizationRedirectStrategy.java:56)
      	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
      	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
      	at com.openshift.internal.restclient.authorization.AuthorizationClient.getContextUsingCredentials(AuthorizationClient.java:134)
      	at com.openshift.internal.restclient.authorization.AuthorizationClient.getContext(AuthorizationClient.java:103)
      	at com.openshift.internal.restclient.DefaultClient.getContext(DefaultClient.java:439)
      	at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:209)
      	at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:199)
      	at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:263)
      	at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPage$ConnectJob.doRun(ConnectionWizardPage.java:335)
      	at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      Show
      ASSERT: make sure that you can log into https://console.stg.openshift.com via web-ui EXEC: use an existing connection to https://console.stg.openshift.com EXEC: in case you're using an existing connection: launch application wizard and pick your connection to stg and hit "Next" ASSERT: you're told to obtain an API token EXEC: hit "retrieve", log in, copy the token in the dialog and paste it into the form EXEC: hit "Next" Result: You're told that you need to get a new token. (Repeat login in, copy/pasting token and trying to log in. Get the above) In the Eclipse log you'll find the following for each failed attempt: com.openshift.restclient.authorization.UnauthorizedException: "You must obtain an API token by visiting https: //api.stg.openshift.com/oauth/token/request" at com.openshift.internal.restclient.authorization.OpenShiftAuthorizationRedirectStrategy.isRedirected(OpenShiftAuthorizationRedirectStrategy.java:56) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at com.openshift.internal.restclient.authorization.AuthorizationClient.getContextUsingCredentials(AuthorizationClient.java:134) at com.openshift.internal.restclient.authorization.AuthorizationClient.getContext(AuthorizationClient.java:103) at com.openshift.internal.restclient.DefaultClient.getContext(DefaultClient.java:439) at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:209) at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:199) at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:263) at org.jboss.tools.openshift.internal.common.ui.connection.ConnectionWizardPage$ConnectJob.doRun(ConnectionWizardPage.java:335) at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: