org.springframework.social.security.provider
Interface SocialAuthenticationService<S>
- Type Parameters:
S - The provider's API type.
- All Known Implementing Classes:
- AbstractSocialAuthenticationService, OAuth1AuthenticationService, OAuth2AuthenticationService
public interface SocialAuthenticationService<S>
Authentication for social ConnectionFactory
- Author:
- Stefan Fussennegger
getConnectionCardinality
SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
- Returns:
SocialAuthenticationService.ConnectionCardinality for connections to this provider
getConnectionFactory
ConnectionFactory<S> getConnectionFactory()
- Returns:
ConnectionFactory used for authentication
getAuthToken
SocialAuthenticationToken getAuthToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws SocialAuthenticationRedirectException
- extract
SocialAuthenticationToken from request
- Parameters:
request - current HttpServletRequestresponse - current HttpServletResponse
- Returns:
- new unauthenticated token or null
- Throws:
SocialAuthenticationRedirectException - if social auth requires a redirect, e.g. OAuth
getConnectionAddedRedirectUrl
java.lang.String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request,
Connection<?> connection)
- Parameters:
request - connection -
- Returns:
- null to use filter default