Interface SocialAuthenticationService<S>
-
- Type Parameters:
S- The provider's API type.
- All Known Implementing Classes:
AbstractSocialAuthenticationService,OAuth1AuthenticationService,OAuth2AuthenticationService
public interface SocialAuthenticationService<S>Authentication for socialConnectionFactory- Author:
- Stefan Fussennegger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSocialAuthenticationService.ConnectionCardinality
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SocialAuthenticationTokengetAuthToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)extractSocialAuthenticationTokenfrom requestStringgetConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request, Connection<?> connection)SocialAuthenticationService.ConnectionCardinalitygetConnectionCardinality()ConnectionFactory<S>getConnectionFactory()
-
-
-
Method Detail
-
getConnectionCardinality
SocialAuthenticationService.ConnectionCardinality getConnectionCardinality()
- Returns:
SocialAuthenticationService.ConnectionCardinalityfor connections to this provider
-
getConnectionFactory
ConnectionFactory<S> getConnectionFactory()
- Returns:
ConnectionFactoryused for authentication
-
getAuthToken
SocialAuthenticationToken getAuthToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SocialAuthenticationRedirectException
extractSocialAuthenticationTokenfrom request- Parameters:
request- currentHttpServletRequestresponse- currentHttpServletResponse- Returns:
- new unauthenticated token or null
- Throws:
SocialAuthenticationRedirectException- if social auth requires a redirect, e.g. OAuth
-
getConnectionAddedRedirectUrl
String getConnectionAddedRedirectUrl(javax.servlet.http.HttpServletRequest request, Connection<?> connection)
- Parameters:
request-connection-- Returns:
- null to use filter default
-
-