Professional Documents
Culture Documents
Authorization
Authorization
1 @Override
2 protected void configure(HttpSecurity http) throws Exception {}
3 http.
4 formLogin()
formLogin()
formLogin() docs
Method to configure form login. By default provides a login page (not restfull).
logout()
antMatchers()
HttpSecurity (Spring Security 3.2.3.RELEASE API)
java - Use Spring Security Filter to lock down everything except a few routes - Stack Overflow
antPatterns:
The mapping matches URLs using the following rules:
Examples
Examples:
Matchers are considered in order. After a match the following are ignored until the and().
First goes the most restrictive rule.
formLogin()
HttpSecurity (Spring Security 3.2.3.RELEASE API)
1 @Override
2 protected void configure(HttpSecurity http) throws Exception {
3 http
4 .authorizeRequests()
5 .antMatchers("/**").hasRole("USER")
6 .and()
7 .formLogin(); // autogenerated login page.
8 }
Fetch API
How to make a post request with JSON data in application/x-www-form-urlencoded · Issue #263 · github/fetch
· GitHub