public class OAuth2SsoConfigurerAdapter extends Object implements OAuth2SsoConfigurer
OAuth2SsoConfigurer.RequestMatchers
Constructor and Description |
---|
OAuth2SsoConfigurerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
Configure the access rules for the requests already matched in
OAuth2SsoConfigurer.match(RequestMatchers) . |
void |
match(OAuth2SsoConfigurer.RequestMatchers matchers)
Add request matchers (e.g.
|
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
OAuth2SsoConfigurer
OAuth2SsoConfigurer.match(RequestMatchers)
. It's best not to use the matcher methods on the
provided builder, since that will override changes made elsewhere. But you can (and
should) use the matcher methods in the HttpSecurity.authorizeRequests()
sub-builder to control the access rules for the matched resources.configure
in interface OAuth2SsoConfigurer
http
- the current HttpSecurity builderException
- if the HttpSecurity builder doespublic void match(OAuth2SsoConfigurer.RequestMatchers matchers)
OAuth2SsoConfigurer
match
in interface OAuth2SsoConfigurer
matchers
- a builder for request matchersCopyright © 2015 Pivotal Software, Inc.. All rights reserved.