AuthenticationHerokuConfig.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:entsoftarch-1516-server 作者:
@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
    ShaPasswordEncoder encoder = new ShaPasswordEncoder();
    encoder.setEncodeHashAsBase64(true);

    auth
        .inMemoryAuthentication()
            .passwordEncoder(encoder)
            .withUser("admin").password("18LcJuI3xeanShlrg/oherDmVf4=").roles("ADMIN").and()
            .withUser("coordinator1").password("18LcJuI3xeanShlrg/oherDmVf4=").roles("COORDINATOR").and()
            .withUser("professor1").password("18LcJuI3xeanShlrg/oherDmVf4=").roles("PROFESSOR", "PROPONENT").and()
            .withUser("student1").password("18LcJuI3xeanShlrg/oherDmVf4=").roles("STUDENT", "PROFESSOR");
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号