Example usage for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder inMemoryAuthentication

List of usage examples for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder inMemoryAuthentication

Introduction

In this page you can find the example usage for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder inMemoryAuthentication.

Prototype

public InMemoryUserDetailsManagerConfigurer<AuthenticationManagerBuilder> inMemoryAuthentication()
        throws Exception 

Source Link

Document

Add in memory authentication to the AuthenticationManagerBuilder and return a InMemoryUserDetailsManagerConfigurer to allow customization of the in memory authentication.

Usage

From source file:org.vaadin.spring.boot.sample.security.security.Application.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("user").password("password").roles("USER").and().withUser("admin")
            .password("password").roles("ADMIN");
}

From source file:br.com.ifc.web.core.SecurityConfig.java

@Autowired
public void configureGlobalSecurity(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("user").password("user").roles("USER", "ADMIN");
}

From source file:co.th.linksinnovation.mitrphol.spring.security.config.WebSecurityConfig.java

@Autowired
@Override/*from w w w. java  2s . c o  m*/
public void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("u").password("p").roles("USER");
}

From source file:com.springthunder.config.WebSecurityConfig.java

@Autowired
public void init(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("admin").password("admin").roles("USER");

}

From source file:com.angular2.security.SecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");
}

From source file:com.alejandroszlv.mock.web.config.security.SecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("admin").password("admin").roles("ADMIN");
}

From source file:com.artivisi.auth.basic.config.WebSecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("admin").password("123").roles("ADMIN");
}

From source file:org.elasticstore.server.config.ElasticStoreSecurityConfigurer.java

@Override
public void init(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("test").password("test").roles("ADMIN", "USER");
}

From source file:ua.com.rocketlv.spb.WebSecurityConfig.java

@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("admin").password("admin").roles("USER");
    //auth.jdbcAuthentication().
}

From source file:com.hendisantika.ldap.WebSecurityConfig.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("user").password("password").roles("USER");

}