{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-security/issues/3988","repository_url":"https://api.github.com/repos/spring-projects/spring-security","labels_url":"https://api.github.com/repos/spring-projects/spring-security/issues/3988/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-security/issues/3988/comments","events_url":"https://api.github.com/repos/spring-projects/spring-security/issues/3988/events","html_url":"https://github.com/spring-projects/spring-security/issues/3988","id":167167004,"number":3988,"title":"logout url not responding with https","user":{"login":"xenoterracide","id":5517,"avatar_url":"https://avatars3.githubusercontent.com/u/5517?v=4","gravatar_id":"","url":"https://api.github.com/users/xenoterracide","html_url":"https://github.com/xenoterracide","followers_url":"https://api.github.com/users/xenoterracide/followers","following_url":"https://api.github.com/users/xenoterracide/following{/other_user}","gists_url":"https://api.github.com/users/xenoterracide/gists{/gist_id}","starred_url":"https://api.github.com/users/xenoterracide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenoterracide/subscriptions","organizations_url":"https://api.github.com/users/xenoterracide/orgs","repos_url":"https://api.github.com/users/xenoterracide/repos","events_url":"https://api.github.com/users/xenoterracide/events{/privacy}","received_events_url":"https://api.github.com/users/xenoterracide/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-23T04:33:13Z","updated_at":"2018-03-27T14:39:46Z","closed_at":null,"author_association":"NONE","body":"### Summary\n\nI've got my spring boot container behind Amazon  cloudwatch with the following settings \n\n```\nserver.tomcat.remote_ip_header=x-forwarded-for\nserver.tomcat.protocol_header=x-forwarded-proto\n```\n\nit has worked well for everything so (including some returned Hateoas links) except now for logout. I set the logout url to `/` it's returning the right domain, but not https.\n`\n### Actual Behavior\n\npost to logout, via proxy via https://domain.tld  returns a 302 http://domain.tld/\n### Expected Behavior\n\npost to logout, via proxy via https://domain.tld should return a 302 https://domain.tld/\n### Configuration\n\n```\n@EnableWebSecurity\nclass WebSecurityConfig extends WebSecurityConfigurerAdapter {\n\n\n    @Override\n    public void configure( final WebSecurity web ) throws Exception {\n        web.ignoring()\n                .antMatchers( \"/\", \"/index.html\", \"/partials/**/*.html\" )\n                .antMatchers( \"/webjars/**/*.js\" )\n                .antMatchers( \"/webjars/**/*.css\" );\n    }\n\n    @Override\n    protected void configure( final HttpSecurity http ) throws Exception {\n        http.authorizeRequests().anyRequest().authenticated()\n                .and().httpBasic()\n                .and().logout().logoutSuccessUrl( \"/\" )\n                .and().csrf().disable();\n    }\n\n}\n```\n### Version\n\n4.0.x\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-security/issues/comments/376550066","html_url":"https://github.com/spring-projects/spring-security/issues/3988#issuecomment-376550066","issue_url":"https://api.github.com/repos/spring-projects/spring-security/issues/3988","id":376550066,"user":{"login":"xenoterracide","id":5517,"avatar_url":"https://avatars3.githubusercontent.com/u/5517?v=4","gravatar_id":"","url":"https://api.github.com/users/xenoterracide","html_url":"https://github.com/xenoterracide","followers_url":"https://api.github.com/users/xenoterracide/followers","following_url":"https://api.github.com/users/xenoterracide/following{/other_user}","gists_url":"https://api.github.com/users/xenoterracide/gists{/gist_id}","starred_url":"https://api.github.com/users/xenoterracide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenoterracide/subscriptions","organizations_url":"https://api.github.com/users/xenoterracide/orgs","repos_url":"https://api.github.com/users/xenoterracide/repos","events_url":"https://api.github.com/users/xenoterracide/events{/privacy}","received_events_url":"https://api.github.com/users/xenoterracide/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T14:39:46Z","updated_at":"2018-03-27T14:39:46Z","author_association":"NONE","body":"@rwinch ... seems suspect since what I put in this ticket suggested that I did follow those instructions, and it was working for everything else."}}
{"actor":{"display_login":"xenoterracide"}}