Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Value("${security.enabled:true}")
- private boolean securityEnabled;
- @Override
- protected void configure(HttpSecurity pHttpSecurity) throws Exception
- {
- if (!securityEnabled)
- {
- return;
- }
- @WithMockUser(username = "admin", roles = "ADMIN")
- MockHttpServletRequest:
- HTTP Method = POST
- Request URI = /admin/createUser
- Parameters = {}
- Headers = {Content-Type=[application/json]}
- Body = <no character encoding set>
- Session Attrs = {SPRING_SECURITY_CONTEXT=org.springframework.security.core.context.SecurityContextImpl@e0791834:
- Authentication: org.springframework.security.authentication.UsernamePasswordAuthenticationToken@e0791834:
- Principal: org.springframework.security.core.userdetails.User@586034f:
- Username: admin; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true;
- credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: ROLE_ADMIN;
- Credentials: [PROTECTED]; Authenticated: true; Details: null; Granted Authorities: ROLE_ADMIN}
Add Comment
Please, Sign In to add comment