{"action":"opened","issue":{"url":"https://api.github.com/repos/integr8ly/tutorial-web-app/issues/14","repository_url":"https://api.github.com/repos/integr8ly/tutorial-web-app","labels_url":"https://api.github.com/repos/integr8ly/tutorial-web-app/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/integr8ly/tutorial-web-app/issues/14/comments","events_url":"https://api.github.com/repos/integr8ly/tutorial-web-app/issues/14/events","html_url":"https://github.com/integr8ly/tutorial-web-app/issues/14","id":357647134,"node_id":"MDU6SXNzdWUzNTc2NDcxMzQ=","number":14,"title":"Automatically set the external OpenShift Host on server startup","user":{"login":"david-martin","id":878251,"node_id":"MDQ6VXNlcjg3ODI1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/878251?v=4","gravatar_id":"","url":"https://api.github.com/users/david-martin","html_url":"https://github.com/david-martin","followers_url":"https://api.github.com/users/david-martin/followers","following_url":"https://api.github.com/users/david-martin/following{/other_user}","gists_url":"https://api.github.com/users/david-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/david-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-martin/subscriptions","organizations_url":"https://api.github.com/users/david-martin/orgs","repos_url":"https://api.github.com/users/david-martin/repos","events_url":"https://api.github.com/users/david-martin/events{/privacy}","received_events_url":"https://api.github.com/users/david-martin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-06T13:08:15Z","updated_at":"2018-09-06T13:08:15Z","closed_at":null,"author_association":"NONE","body":"When running inside an OpenShift Cluster, the `/.well-known/oauth-authorization-server` path can be called to get cluster oauth information, which inlcludes the external cluster url. e.g.\r\n\r\n```\r\ncurl -k https://kubernetes.default/.well-known/oauth-authorization-server\r\n{\r\n  \"issuer\": \"https://mycluster.example.com\",\r\n  \"authorization_endpoint\": \"https://mycluster.example.com/oauth/authorize\",\r\n  \"token_endpoint\": \"https://mycluster.example.com/oauth/token\",\r\n  \"scopes_supported\": [\r\n    \"user:check-access\",\r\n    \"user:full\",\r\n    \"user:info\",\r\n    \"user:list-projects\",\r\n    \"user:list-scoped-projects\"\r\n  ],\r\n  \"response_types_supported\": [\r\n    \"code\",\r\n    \"token\"\r\n  ],\r\n  \"grant_types_supported\": [\r\n    \"authorization_code\",\r\n    \"implicit\"\r\n  ],\r\n  \"code_challenge_methods_supported\": [\r\n    \"plain\",\r\n    \"S256\"\r\n  ]\r\n}\r\n```\r\n\r\nThis could be done on startup of the server if it knows its running in an OpenShift cluster, avoiding the need to manually set the `OPENSHIFT_HOST` env var in the DeploymentConfig"}}
{"actor":{"display_login":"david-martin"}}