如何使用Spring Security Webflow定制OAuth2登录重定向终结点基本URI [英] How to customize the OAuth2 login redirection endpoint base uri with Spring Security Webflux
本文介绍了如何使用Spring Security Webflow定制OAuth2登录重定向终结点基本URI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
推荐答案
在WebFlux应用程序中,可以使用authenticationMatcher()
。
http
.authorizeExchange(exchanges -> exchanges
.anyExchange().authenticated()
)
.oauth2Login(oauth2 -> oauth2
.authenticationMatcher(new PathPatternParserServerWebExchangeMatcher("/login/oauth2/code/{registrationId}"))
);
这篇关于如何使用Spring Security Webflow定制OAuth2登录重定向终结点基本URI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文