This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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?c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<code_scheme name="google-style"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="2" /> | |
<option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
<option name="TAB_SIZE" value="2" /> | |
<option name="USE_TAB_CHARACTER" value="false" /> | |
<option name="SMART_TABS" value="false" /> | |
<option name="LABEL_INDENT_SIZE" value="0" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableWebMvcSecurity | |
public class WebSecurityConfig | |
extends WebSecurityConfigurerAdapter { | |
@Value("${oauth.check_token.url:http://localhost:3030/oauth/token/info}") | |
private String checkTokenUrl; | |
@Autowired @Qualifier("restTemplate") | |
private RestOperations authRestTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@EnableWebMvcSecurity | |
public class WebSecurityConfig | |
extends WebSecurityConfigurerAdapter { | |
@Value("${oauth.check_token.url:http://localhost:3030/oauth/token/info}") | |
private String checkTokenUrl; | |
@Autowired @Qualifier("restTemplate") | |
private RestOperations authRestTemplate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http.addFilterBefore(customAuthFilter(), SecurityContextPersistenceFilter.class) | |
.authorizeRequests() | |
.antMatchers("/**") | |
.authenticated() | |
.and() | |
.exceptionHandling().disable() | |
.sessionManagement().disable() | |
.rememberMe().disable() | |
.x509().disable() | |
.headers().disable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Bean SqlSessionFactory sqlSessionFactory() { | |
TransactionFactory transactionFactory = new JdbcTransactionFactory(); | |
Environment environment = new Environment("dev", transactionFactory, dataSource()); | |
Configuration configuration = new Configuration(environment); | |
// NOTE: you must register aliases before adding mappers. | |
configuration.getTypeAliasRegistry().registerAlias(MyClazz.class); | |
// NOTE: you can add a package where your mappers reside or add one at a time. |