Permalink
Browse files

update/sql scripts

  • Loading branch information...
keets2012 committed Sep 6, 2018
1 parent e4a8109 commit a497e1e3ff6ffcb342a069dbb55fde3296477e2b
@@ -65,7 +65,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
@@ -14,6 +14,7 @@
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.crypto.password.NoOpPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.crypto.scrypt.SCryptPasswordEncoder;
import org.springframework.security.oauth2.config.annotation.web.configurers.ResourceServerSecurityConfigurer;
import org.springframework.security.web.authentication.logout.HttpStatusReturningLogoutSuccessHandler;
@@ -57,7 +58,7 @@ public CustomLogoutHandler customLogoutHandler() {
@Override
public void configure(AuthenticationManagerBuilder auth) throws Exception {
public void configure(AuthenticationManagerBuilder auth) {
auth.authenticationProvider(customAuthenticationProvider);
auth.authenticationProvider(codeAuthenticationProvider);
}
@@ -70,7 +71,9 @@ public AuthenticationManager authenticationManagerBean() throws Exception {
@Bean
public PasswordEncoder passwordEncoder(){
return NoOpPasswordEncoder.getInstance();
return new SCryptPasswordEncoder();
}
@@ -77,7 +77,7 @@ CREATE TABLE `oauth_client_details` (
-- ----------------------------
INSERT INTO `oauth_client_details` VALUES ('frontend', null, 'frontend', 'all', 'password,refresh_token', null, null, null, null, null, null, null, null, null, null, null, null, null);
INSERT INTO `oauth_client_details` VALUES ('frontend', null, '$e0801$65x9sjjnRPuKmqaFn3mICtPYnSWrjE7OB/pKzKTAI4ryhmVoa04cus+9sJcSAFKXZaJ8lcPO1I9H22TZk6EN4A==$o+ZWccaWXSA2t7TxE5VBRvz2W8psujU3RPPvejvNs4U=', 'all', 'password,refresh_token,authorization_code', 'http://localhost:8080', null, null, null, null, null, null, null, null, null, null, null, null);
-- ----------------------------

0 comments on commit a497e1e

Please sign in to comment.