类 OAuth2Util
java.lang.Object
io.github.mangocrisp.spring.taybct.auth.security.util.OAuth2Util
从 org.springframework.security.oauth2.server.authorization.web.authentication 复制过来的,,,
都开源了,还不给我用,哈哈,cv 大法好啊
都开源了,还不给我用,哈哈,cv 大法好啊
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken
getAuthenticatedClientElseThrowInvalidClient
(org.springframework.security.core.Authentication authentication) 获取客户端身份验证信息getParameters
(jakarta.servlet.http.HttpServletRequest request) getParametersIfMatchesAuthorizationCodeGrantRequest
(jakarta.servlet.http.HttpServletRequest request, String... exclusions) static boolean
matchesAuthorizationCodeGrantRequest
(jakarta.servlet.http.HttpServletRequest request) static boolean
matchesPkceTokenRequest
(jakarta.servlet.http.HttpServletRequest request) static void
throwError
(String errorCode, String parameterName, String errorUri)
-
字段详细资料
-
ACCESS_TOKEN_REQUEST_ERROR_URI
错误页面???- 另请参阅:
-
-
构造器详细资料
-
OAuth2Util
private OAuth2Util()
-
-
方法详细资料
-
getAuthenticatedClientElseThrowInvalidClient
public static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication) 获取客户端身份验证信息- 参数:
authentication
- 验证信息- 返回:
- OAuth2ClientAuthenticationToken
-
getParameters
-
getParametersIfMatchesAuthorizationCodeGrantRequest
-
matchesAuthorizationCodeGrantRequest
public static boolean matchesAuthorizationCodeGrantRequest(jakarta.servlet.http.HttpServletRequest request) -
matchesPkceTokenRequest
public static boolean matchesPkceTokenRequest(jakarta.servlet.http.HttpServletRequest request) -
throwError
-