类org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration源码实例Demo

下面列出了怎么用org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration的API类实例代码及写法,或者点击链接到github查看源代码。

@Test
public void testIapBeansReturnedWhenBothIapAndSpringSecurityConfigPresent() {
	new ApplicationContextRunner()
			.withPropertyValues("spring.cloud.gcp.security.iap.audience=unused")
			.withConfiguration(
					AutoConfigurations.of(
							IapAuthenticationAutoConfiguration.class,
							OAuth2ResourceServerAutoConfiguration.class,
							TestConfiguration.class))
			.run(this::verifyJwtBeans);
}
 
 类方法
 同包方法