Open zak-hassan opened 8 years ago
E0331 01:39:44.892250 26587 osinserver.go:99] internal error: urls don't validate: http://localhost:9090,http://localhost:2772,http://localhost:9000,http://fabric8.209.132.179.197,https://fabric8.209.132.179.197 / http://209.132.179.197:30459/
E0331 01:40:22.297347 26587 osinserver.go:99] internal error: urls don't validate: http://localhost:9090,http://localhost:2772,http://localhost:9000,http://fabric8.209.132.179.197,https://fabric8.209.132.179.197 / http://209.132.179.197:30459/
E0331 01:42:17.161424 26587 osinserver.go:99] internal error: urls don't validate: http://localhost:9090,http://localhost:2772,http://localhost:9000,http://fabric8.209.132.179.197,https://fabric8.209.132.179.197 / http://209.132.179.197:30459/
E0331 01:43:10.723756 26587 osinserver.go:99] internal error: urls don't validate: http://localhost:9090,http://localhost:2772,http://localhost:9000,http://fabric8.209.132.179.197,https://fabric8.209.132.179.197 / http://209.132.179.197:30459/
After more research here is what I found:
There is a hard coded env variable:
[root@infra openshift]# oc env pod fabric8-u8bw7 --list
# pods fabric8-u8bw7, container fabric8-container
GOOGLE_OAUTH_SCOPE=profile
OAUTH_AUTHORIZE_PORT=8443
GOOGLE_OAUTH_CLIENT_ID=
OAUTH_AUTHORIZE_URI=https://vagrant.f8:8443/oauth/authorize
GOOGLE_OAUTH_AUTHENTICATION_URI=https://accounts.google.com/o/oauth2/auth
GOOGLE_OAUTH_CLIENT_SECRET=
OAUTH_CLIENT_ID=fabric8
OAUTH_PROVIDER=openshift
GOOGLE_OAUTH_REDIRECT_URI=https://fabric8.vagrant.f8
GOOGLE_OAUTH_TOKEN_URL=https://www.googleapis.com/oauth2/v3/token
KUBERNETES_NAMESPACE=
I'm having trouble logging into the fabric8 webconsole 172.xxx.xx.xx it redirects me to:
http://vagrant.f8:8443/..............................
Then the browser complains about very long url.
After doing some research it looks like this code checks authentication:
https://github.com/projectatomic/atomic-enterprise/blob/master/pkg/oauth/server/osinserver/osinserver.go#L69
Would like this: