Class OAuth2AuthenticationProviderUtils
java.lang.Object
com.broadleafcommerce.auth.authorization.security.spring.OAuth2AuthenticationProviderUtils
This is a direct copy of
org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationProviderUtils
due to package-private access in the original Spring Security Authorization Server framework.
Utility methods for the OAuth 2.0 AuthenticationProvider's.
- Since:
- 0.0.3
- Author:
- Joe Grandja
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.springframework.security.oauth2.core.OAuth2Token>
org.springframework.security.oauth2.core.OAuth2AccessTokenaccessToken(org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder builder, T token, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext accessTokenContext) static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationTokengetAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication)
-
Method Details
-
getAuthenticatedClientElseThrowInvalidClient
public static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication) -
accessToken
public static <T extends org.springframework.security.oauth2.core.OAuth2Token> org.springframework.security.oauth2.core.OAuth2AccessToken accessToken(org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder builder, T token, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext accessTokenContext)
-