List of usage examples for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder inMemoryAuthentication
public InMemoryUserDetailsManagerConfigurer<AuthenticationManagerBuilder> inMemoryAuthentication() throws Exception
From source file:com.teradata.benchto.service.WebSecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { if (isApiProtected) { auth.inMemoryAuthentication().withUser(userLogin).password(userPassword).roles(API_WRITE_ROLE); }/* w w w .ja v a 2 s . co m*/ }
From source file:com.vaadinspringtemplate.security.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { //auth.authenticationProvider(cust); auth.inMemoryAuthentication().withUser("user").password("user").roles("USER"); auth.inMemoryAuthentication().withUser("admin").password("admin").roles("ADMIN"); }
From source file:com.avaya.subMgmt.server.SecurityConfigAdapter.java
@Override public void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser(username).password(password).roles("USER"); }
From source file:com.marklogic.samplestack.mock.MockApplicationSecurity.java
@Override protected void configure(AuthenticationManagerBuilder authManagerBuilder) throws Exception { authManagerBuilder.inMemoryAuthentication().withUser("joeUser@marklogic.com").password("joesPassword") .roles("CONTRIBUTORS").and().withUser("maryAdmin@marklogic.com").password("marysPassword") .roles("CONTRIBUTORS", "ADMINS"); }
From source file:ltistarter.Application.java
@Autowired @Order(Ordered.HIGHEST_PRECEDENCE + 10)/*ww w .j av a 2s . co m*/ @SuppressWarnings("SpringJavaAutowiringInspection") public void configureSimpleAuthUsers(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("admin").password("admin").roles("ADMIN", "USER").and() .withUser("user").password("user").roles("USER"); }
From source file:com.gopivotal.cla.security.SecurityConfiguration.java
@Override protected void registerAuthentication(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication(); }
From source file:com.orange.clara.tool.config.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser(defaultUserUsername).password(defaultUserPassword).roles("USER"); auth.inMemoryAuthentication().withUser(adminUsername).password(adminPassword).roles("ADMIN", "USER"); }
From source file:com.chortitzer.web.WebSecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { //Configure roles and passwords as in-memory authentication auth.inMemoryAuthentication().withUser("administrator").password("pass").roles("ADMIN"); auth.inMemoryAuthentication().withUser("energia").password("energia").roles("energia"); }
From source file:com.javaetmoi.sample.config.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { // to customize with your own authentication provider auth.inMemoryAuthentication().withUser("user").password("password").roles("USER"); }