{"action":"created","issue":{"url":"https://api.github.com/repos/gravitee-io/issues/issues/1331","repository_url":"https://api.github.com/repos/gravitee-io/issues","labels_url":"https://api.github.com/repos/gravitee-io/issues/issues/1331/labels{/name}","comments_url":"https://api.github.com/repos/gravitee-io/issues/issues/1331/comments","events_url":"https://api.github.com/repos/gravitee-io/issues/issues/1331/events","html_url":"https://github.com/gravitee-io/issues/issues/1331","id":334476437,"node_id":"MDU6SXNzdWUzMzQ0NzY0Mzc=","number":1331,"title":"Connect gravitee gateway to keycloak throught proxy","user":{"login":"bloudman","id":13632012,"node_id":"MDQ6VXNlcjEzNjMyMDEy","avatar_url":"https://avatars0.githubusercontent.com/u/13632012?v=4","gravatar_id":"","url":"https://api.github.com/users/bloudman","html_url":"https://github.com/bloudman","followers_url":"https://api.github.com/users/bloudman/followers","following_url":"https://api.github.com/users/bloudman/following{/other_user}","gists_url":"https://api.github.com/users/bloudman/gists{/gist_id}","starred_url":"https://api.github.com/users/bloudman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloudman/subscriptions","organizations_url":"https://api.github.com/users/bloudman/orgs","repos_url":"https://api.github.com/users/bloudman/repos","events_url":"https://api.github.com/users/bloudman/events{/privacy}","received_events_url":"https://api.github.com/users/bloudman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-06-21T12:44:04Z","updated_at":"2018-06-21T13:18:38Z","closed_at":null,"author_association":"NONE","body":"<!--- Provide a general summary of the issue in the Title above -->\r\nHi,\r\nI'm in trouble, since yesturday I try to connect my gravitee gateway with keycloak throught a proxy.\r\nI pass `JAVA_OPTS=-Dhttp.proxyHost=proxy.net -Dhttp.proxyPort=3128 -Dhttps.proxyHost=proxy.net -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts=”selenium-hub|localhost”  -Dhttps.nonProxyHosts=”selenium-hub|localhost”` and it is set correctly.\r\n\r\n### Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\nConnect to my keycloak server\r\n\r\n### Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n```\r\n\r\n11:47:36.833 [vert.x-eventloop-thread-5] [] ERROR i.g.r.o.k.OAuth2KeycloakResource - An error occurs while introspecting access token\r\n--\r\n  | io.netty.channel.ConnectTimeoutException: connection timed out: keycloak-server.fr/192.192.195.192:443\r\n  | at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe$1.run(AbstractNioChannel.java:267)\r\n  | at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38)\r\n  | at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:125)\r\n  | at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)\r\n  | at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)\r\n  | at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)\r\n  | at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)\r\n  | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)\r\n  | at java.lang.Thread.run(Thread.java:748)\r\n\r\n\r\n````\r\n\r\n### Possible Solution\r\n<!--- Not mandatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\nFind keycloak with local hostname (but it will not work because keycloak check the hostname) so the unique solution is to set correct proxy\r\n\r\n### Context\r\n<!--- How has this issue affected you? What are you trying to accomplish? -->\r\n<!--- Providing context helps us come up with a solution that is most useful in the real world -->\r\nI'm trying to use Gravitee and Keycloak to protect a selenium-hub.<br/>\r\nI'm sure that my proxy is working because I can access to keycloak with curl.\r\n### Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n* Version used: 1.16.3\r\n* Browser Name and version: Chrome 67\r\n* Operating System and version: Openshift\r\n\r\nDo you have an idea why gravitee does not seem to use the proxy settings?\r\nIs there something else that I could miss ? "},"comment":{"url":"https://api.github.com/repos/gravitee-io/issues/issues/comments/399100484","html_url":"https://github.com/gravitee-io/issues/issues/1331#issuecomment-399100484","issue_url":"https://api.github.com/repos/gravitee-io/issues/issues/1331","id":399100484,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTEwMDQ4NA==","user":{"login":"bloudman","id":13632012,"node_id":"MDQ6VXNlcjEzNjMyMDEy","avatar_url":"https://avatars0.githubusercontent.com/u/13632012?v=4","gravatar_id":"","url":"https://api.github.com/users/bloudman","html_url":"https://github.com/bloudman","followers_url":"https://api.github.com/users/bloudman/followers","following_url":"https://api.github.com/users/bloudman/following{/other_user}","gists_url":"https://api.github.com/users/bloudman/gists{/gist_id}","starred_url":"https://api.github.com/users/bloudman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloudman/subscriptions","organizations_url":"https://api.github.com/users/bloudman/orgs","repos_url":"https://api.github.com/users/bloudman/repos","events_url":"https://api.github.com/users/bloudman/events{/privacy}","received_events_url":"https://api.github.com/users/bloudman/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T13:18:38Z","updated_at":"2018-06-21T13:18:38Z","author_association":"NONE","body":"It's too bad that I saw that less than one hour ago ^^ \r\n\r\nI already saw your breizhcamp 2018 conference and i'm not too far from succeeding to use keycloak and gravitee just this little thing with proxies that I don't know how to solve  :) \r\n\r\nAlso I think I will need to implement a plugin (for basic http authentification like: admin:admin@gravitee-gateway.com) I don't know if you have examples in order to achieve that."}}
{"actor":{"display_login":"bloudman"}}