List of usage examples for org.springframework.security.config.annotation.authentication.builders AuthenticationManagerBuilder inMemoryAuthentication
public InMemoryUserDetailsManagerConfigurer<AuthenticationManagerBuilder> inMemoryAuthentication() throws Exception
From source file:com.jfillo.spring.samples.chatroom.config.ChatWebSecurityConfig.java
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("john").password("smith").roles("USER").and().withUser("jane") .password("doe").roles("USER"); }
From source file:at.ac.tuwien.infosys.configuration.SecurityConfiguration.java
@Override protected void configure(final AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("user").password("password"); }
From source file:ca.n4dev.dev.worktime.config.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("user").password("123").roles("USER"); auth.inMemoryAuthentication().withUser("admin").password("123").roles("ADMIN"); auth.inMemoryAuthentication().withUser("dba").password("123").roles("DBA"); }
From source file:net.prasenjit.security.login.SecurityConfiguration.java
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("user").password("user").authorities("USER"); }
From source file:fr.putnami.pwt.doc.server.config.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication(); }
From source file:org.openmhealth.dsu.configuration.SecurityConfiguration.java
@Override public void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication(); }
From source file:com.ar.dev.tierra.hasar.api.config.security.WebSecurityConfiguration.java
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("AFIP_SMH/P-441F").password("T13RR4$7j15vker4L-L").roles("PRINTER"); }
From source file:net.indialend.attendance.conf.SecurityConfig.java
@Autowired public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("indialend").password("123456").roles("USER"); // auth.jdbcAuthentication().dataSource(dataSource) // .usersByUsernameQuery( // "select user,pwd, enable from users where user=?") // .authoritiesByUsernameQuery( // "select user, role from user_roles where user=?"); }
From source file:com.lyncode.dataencoder.security.spring.SecurityConfig.java
@Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser(environment.getProperty("admin.user")) .password(environment.getProperty("admin.pass")).roles("ADMIN"); }
From source file:org.hobsoft.contacts.server.security.SecurityConfig.java
/** * {@inheritDoc}//from ww w . jav a 2 s . com */ @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.inMemoryAuthentication().withUser("mark").password("password").roles("USER"); }