{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/12","repository_url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin","labels_url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/12/comments","events_url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/12/events","html_url":"https://github.com/jenkinsci/azure-ad-plugin/issues/12","id":333002645,"node_id":"MDU6SXNzdWUzMzMwMDI2NDU=","number":12,"title":"Issue with HTTPS","user":{"login":"tito1982","id":40322751,"node_id":"MDQ6VXNlcjQwMzIyNzUx","avatar_url":"https://avatars2.githubusercontent.com/u/40322751?v=4","gravatar_id":"","url":"https://api.github.com/users/tito1982","html_url":"https://github.com/tito1982","followers_url":"https://api.github.com/users/tito1982/followers","following_url":"https://api.github.com/users/tito1982/following{/other_user}","gists_url":"https://api.github.com/users/tito1982/gists{/gist_id}","starred_url":"https://api.github.com/users/tito1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tito1982/subscriptions","organizations_url":"https://api.github.com/users/tito1982/orgs","repos_url":"https://api.github.com/users/tito1982/repos","events_url":"https://api.github.com/users/tito1982/events{/privacy}","received_events_url":"https://api.github.com/users/tito1982/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-16T17:33:56Z","updated_at":"2018-07-11T08:21:35Z","closed_at":null,"author_association":"NONE","body":"Good afternoon,\r\n\r\nI am trying to use this plugin with Jenkins in Azure and https. In the redirect URL I have to add HTTP, because with HTTPs the integration doesn´t work, it says the the expected Url is not valid.\r\n\r\nFor that reason I have to add the redirect inside of Nginx, to allow Azure to send the request to HTTP and then redirect the request to HTTPs, however, when I do it and I redirect to Https://myhost.com/securityRealm/finishLogin and I have the following error:\r\n\r\njava.lang.IllegalStateException: Can't extract id_token\r\n\tat com.microsoft.jenkins.azuread.AzureSecurityRealm.doFinishLogin(AzureSecurityRealm.java:199)\r\n\tat java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)\r\n\tat org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)\r\n\tat org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)\r\n\tat org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)\r\n\tat org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)\r\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)\r\nCaused: javax.servlet.ServletException\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:765)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)\r\n\tat org.kohsuke.stapler.MetaClass$3.doDispatch(MetaClass.java:209)\r\n\tat org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)\r\n\tat org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)\r\n\tat org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)\r\n\tat org.kohsuke.stapler.Stapler.service(Stapler.java:238)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:860)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)\r\n\tat hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154)\r\n\tat hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:105)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)\r\n\tat hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:135)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\r\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)\r\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\r\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)\r\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)\r\n\tat org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:530)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:347)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:256)\r\n\tat org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)\r\n\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)\r\n\tat org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:247)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:140)\r\n\tat org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)\r\n\tat org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:382)\r\n\tat winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\n\r\n\r\nAny ideas?\r\n\r\nThanks so much.\r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/comments/404086117","html_url":"https://github.com/jenkinsci/azure-ad-plugin/issues/12#issuecomment-404086117","issue_url":"https://api.github.com/repos/jenkinsci/azure-ad-plugin/issues/12","id":404086117,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDA4NjExNw==","user":{"login":"LGDoor","id":983170,"node_id":"MDQ6VXNlcjk4MzE3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/983170?v=4","gravatar_id":"","url":"https://api.github.com/users/LGDoor","html_url":"https://github.com/LGDoor","followers_url":"https://api.github.com/users/LGDoor/followers","following_url":"https://api.github.com/users/LGDoor/following{/other_user}","gists_url":"https://api.github.com/users/LGDoor/gists{/gist_id}","starred_url":"https://api.github.com/users/LGDoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LGDoor/subscriptions","organizations_url":"https://api.github.com/users/LGDoor/orgs","repos_url":"https://api.github.com/users/LGDoor/repos","events_url":"https://api.github.com/users/LGDoor/events{/privacy}","received_events_url":"https://api.github.com/users/LGDoor/received_events","type":"User","site_admin":false},"created_at":"2018-07-11T08:21:35Z","updated_at":"2018-07-11T08:21:35Z","author_association":"CONTRIBUTOR","body":"In which step you see `the the expected Url is not valid`? I can set up the https reply url successfully."}}
{"actor":{"display_login":"LGDoor"}}