Skip to content

Instantly share code, notes, and snippets.

@yterradas
Created November 18, 2014 15:12
Show Gist options
  • Save yterradas/61da3f6eccc683b3a086 to your computer and use it in GitHub Desktop.
Save yterradas/61da3f6eccc683b3a086 to your computer and use it in GitHub Desktop.
2014-11-17 21:14:10.504 DEBUG [http-nio-8080-exec-1] HttpSessionRequestCache : DefaultSavedRequest added to Session: DefaultSavedRequest[http://localhost:8080/home]
2014-11-17 21:14:10.504 DEBUG [http-nio-8080-exec-1] ExceptionTranslationFilter : Calling Authentication entry point.
2014-11-17 21:14:10.505 DEBUG [http-nio-8080-exec-1] DefaultRedirectStrategy : Redirecting to 'http://localhost:8080/vaultLogin'
2014-11-17 21:14:10.505 DEBUG [http-nio-8080-exec-1] HttpSessionSecurityContextRepository : SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
2014-11-17 21:14:10.505 DEBUG [http-nio-8080-exec-1] SecurityContextPersistenceFilter : SecurityContextHolder now cleared, as request processing completed
2014-11-17 21:14:10.514 DEBUG [http-nio-8080-exec-2] OAuth2ClientAuthenticationProcessingFilter : Request is to process authentication
2014-11-17 21:14:10.536 DEBUG [http-nio-8080-exec-2] DefaultRedirectStrategy : Redirecting to 'http://localhost:3000/oauth/authorize?client_id=aeab6dc2db6a66bead969522fec88170b4a8a94f2eac87e7619bfdbabf1a9fd2&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2FvaultLogin&response_type=code&state=24hj5C'
2014-11-17 21:14:10.552 DEBUG [http-nio-8080-exec-3] OAuth2ClientAuthenticationProcessingFilter : Request is to process authentication
2014-11-17 21:14:10.561 DEBUG [http-nio-8080-exec-3] AuthorizationCodeAccessTokenProvider : Retrieving token from http://localhost:3000/oauth/token
2014-11-17 21:14:10.567 DEBUG [http-nio-8080-exec-3] AuthorizationCodeAccessTokenProvider : Encoding and sending form: {grant_type=[authorization_code], code=[d6a5574a15f0a683223399249cbdf40043dc1bb989553da6d1595ca68fd4c8e0], redirect_uri=[http://localhost:8080/vaultLogin], client_id=[aeab6dc2db6a66bead969522fec88170b4a8a94f2eac87e7619bfdbabf1a9fd2], client_secret=[8a52bf1e44fbb1fff4a76638ac3280dd6c93cbb766f5ff921c223a764c9825c6]}
2014-11-17 21:14:10.672 DEBUG [http-nio-8080-exec-3] OAuth2ClientAuthenticationProcessingFilter : Authentication success. Updating SecurityContextHolder to contain: org.springframework.security.oauth2.provider.OAuth2Authentication@96c5bf46: Principal: test@test.com; Credentials: [PROTECTED]; Authenticated: true; Details: remoteAddress=0:0:0:0:0:0:0:1, sessionId=<SESSION>, tokenValue=<TOKEN>; Not granted any authorities
2014-11-17 21:14:10.672 INFO [http-nio-8080-exec-3] AuditListener : AuditEvent [timestamp=Mon Nov 17 21:14:10 UTC 2014, principal=test@test.com, type=AUTHENTICATION_SUCCESS, data={details=remoteAddress=0:0:0:0:0:0:0:1, sessionId=<SESSION>, tokenValue=<TOKEN>}]
2014-11-17 21:14:10.672 DEBUG [http-nio-8080-exec-3] SavedRequestAwareAuthenticationSuccessHandler : Redirecting to DefaultSavedRequest Url: http://localhost:8080/home
2014-11-17 21:14:10.672 DEBUG [http-nio-8080-exec-3] DefaultRedirectStrategy : Redirecting to 'http://localhost:8080/home'
2014-11-17 21:14:10.675 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/css/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/js/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/images/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/**/favicon.ico'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/error'
2014-11-17 21:14:10.676 INFO [http-nio-8080-exec-4] Spring Security Debugger :
************************************************************
Request received for GET '/home':
org.apache.catalina.connector.RequestFacade@3f79ed17
servletPath:/home
pathInfo:null
headers:
host: localhost:8080
connection: keep-alive
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36
accept-encoding: gzip,deflate,sdch
accept-language: en-US,en;q=0.8
cookie: request_method=GET; JSESSIONID=A321F2D237C7683A97E006686FDB4BF4; _vault_session=YkRycEpBejdnMW5PUE5IV1plUlVsWkc3QnljNW8ybkhBekVLdExtZ3lQYXVOVHFqamE3d0Y3WVZtWmFGcDFOQ0ZsSy9MeVNjUWdvNjZwc3N0SXEyMGkwZ3d5ZW1aeC9WTE0yRVErZW1OdmdYVEFxY1VLNFpGbWk3bXl2Y2JjQ295U0NRd0R5UERaUFNqVDRuT0tDTWhmUXJTeXZNOXdoMGJkTnFZQ1MyYjN1U21NQVlhY29PbjVleWVPdElqRXU4SG9UYWh6dS9JTDhaWHU3QUNBeHEvUityZjdvUzhrRzJORXI5aVB6R2NxdTJ1YWNPUjBHK3lLWkkvSHdJbnozVi0tdlJZd2FZZkZVbXlPNXB5WUxSL001Zz09--e4c37428ad4e23e2965cfd102655de7fae4bd0c5
Security filter chain: [
WebAsyncManagerIntegrationFilter
SecurityContextPersistenceFilter
HeaderWriterFilter
CsrfFilter
LogoutFilter
RequestCacheAwareFilter
SecurityContextHolderAwareRequestFilter
SessionManagementFilter
ExceptionTranslationFilter
OAuth2ClientAuthenticationProcessingFilter
FilterSecurityInterceptor
]
************************************************************
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/css/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/js/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/images/**'
2014-11-17 21:14:10.676 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/**/favicon.ico'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Checking match of request : '/home'; against '/error'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 1 of 11 in additional filter chain; firing Filter: 'WebAsyncManagerIntegrationFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 2 of 11 in additional filter chain; firing Filter: 'SecurityContextPersistenceFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] HttpSessionSecurityContextRepository : HttpSession returned null object for SPRING_SECURITY_CONTEXT
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] HttpSessionSecurityContextRepository : No SecurityContext was available from the HttpSession: org.apache.catalina.session.StandardSessionFacade@3b7e9fde. A new one will be created.
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 3 of 11 in additional filter chain; firing Filter: 'HeaderWriterFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] HstsHeaderWriter : Not injecting HSTS header since it did not match the requestMatcher org.springframework.security.web.header.writers.HstsHeaderWriter$SecureRequestMatcher@305214e8
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 4 of 11 in additional filter chain; firing Filter: 'CsrfFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 5 of 11 in additional filter chain; firing Filter: 'LogoutFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Request 'GET /home' doesn't match 'POST /logout
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 6 of 11 in additional filter chain; firing Filter: 'RequestCacheAwareFilter'
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : pathInfo: both null (property equals)
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : queryString: both null (property equals)
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : requestURI: arg1=/home; arg2=/home (property equals)
2014-11-17 21:14:10.677 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : serverPort: arg1=8080; arg2=8080 (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : requestURL: arg1=http://localhost:8080/home; arg2=http://localhost:8080/home (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : scheme: arg1=http; arg2=http (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : serverName: arg1=localhost; arg2=localhost (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : contextPath: arg1=; arg2= (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] DefaultSavedRequest : servletPath: arg1=/home; arg2=/home (property equals)
2014-11-17 21:14:10.678 DEBUG [http-nio-8080-exec-4] HttpSessionRequestCache : Removing DefaultSavedRequest from session if present
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 7 of 11 in additional filter chain; firing Filter: 'SecurityContextHolderAwareRequestFilter'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 8 of 11 in additional filter chain; firing Filter: 'SessionManagementFilter'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 9 of 11 in additional filter chain; firing Filter: 'ExceptionTranslationFilter'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 10 of 11 in additional filter chain; firing Filter: 'OAuth2ClientAuthenticationProcessingFilter'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterChainProxy : /home at position 11 of 11 in additional filter chain; firing Filter: 'FilterSecurityInterceptor'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] AntPathRequestMatcher : Request '/home' matched by universal pattern '/**'
2014-11-17 21:14:10.679 DEBUG [http-nio-8080-exec-4] FilterSecurityInterceptor : Secure object: FilterInvocation: URL: /home; Attributes: [authenticated]
2014-11-17 21:14:10.679 INFO [http-nio-8080-exec-4] AuditListener : AuditEvent [timestamp=Mon Nov 17 21:14:10 UTC 2014, principal=<unknown>, type=AUTHENTICATION_FAILURE, data={type=org.springframework.security.authentication.AuthenticationCredentialsNotFoundException, message=An Authentication object was not found in the SecurityContext}]
2014-11-17 21:14:10.680 DEBUG [http-nio-8080-exec-4] ExceptionTranslationFilter : Authentication exception occurred; redirecting to authentication entry point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment