Commit 0bd609c2 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

717: Implement bcrypt security for local authentication

Task-Url: https://minfba.de.dariah.eu/mantisbt/view.php?id=717
parent 53d1d351
[
{
"username" : "tgradl",
"passhash" : "g6arV8TSr/xibM/A93AOwRuoGRSZ2RCVwId7xICLDek=",
"username" : "admin",
"passhash" : "$2a$10$nbXRnAx5wKurTrbaUkT/MOLXKAJgpT8R71/jujzPwgXXrG.OqlBKW",
"roles" : ["ROLE_ADMINISTRATOR"]
}
]
\ No newline at end of file
......@@ -41,7 +41,10 @@
<security:authentication-provider ref="localAuthenticationProvider" />
</security:authentication-manager>
<bean id="securityEntryPoint" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
<constructor-arg value="/login" />
<property name="forceHttps" value="true" />
</bean>
<!-- Map only for ajax calls; how??? entry-point-ref="ajaxEntryPoint" -->
......@@ -52,10 +55,10 @@
<property name="localUserDb">
<bean class="eu.dariah.de.dariahsp.local.LocalUserConfService">
<property name="userfile" value="${saml.local.userfile}" />
<property name="encoder"><bean class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder"/></property>
</bean>
</property>
<property name="userService" ref="userDetailsService" />
<property name="encoder"><bean class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder"/></property>
</bean>
<!-- IDP Metadata configuration - paths to metadata of IDPs in circle of trust is here -->
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment