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:eauction.web.WebSecurityConfig.java

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

From source file:org.karthikps.controller.LoginConfig.java

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

From source file:com.orange.clara.cloud.cf.servicebroker.dbaas.config.WebSecurityConfig.java

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

From source file:com.orange.clara.cloud.cf.servicebroker.log.config.WebSecurityConfig.java

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

From source file:com.handu.open.dubbo.monitor.config.Security.java

@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser(env.getProperty("manager.username", "root"))
            .password(env.getProperty("manager.password", "password")).roles("MANAGER");
}

From source file:poc.hortonworks.storm.config.WebSecurityConfig.java

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

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

@Override
protected void registerAuthentication(AuthenticationManagerBuilder auth) throws Exception {
    auth.inMemoryAuthentication().withUser("bill").password("pass").roles("USER").and().withUser("jim")
            .password("pass").roles("USER").and().withUser("steve").password("pass").roles("ADMIN", "USER");
}

From source file:br.com.edo.atmlist.config.SecurityConfig.java

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

From source file:com.greglturnquist.spring.social.ecobee.SecurityConfiguration.java

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

From source file:com.javiermoreno.springboot.rest.CustomSecurityAdapter.java

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