public abstract class AbstractOauthLoginController<IoExceptionT extends org.thryft.waf.api.services.AbstractIoException,UserEntryT extends org.thryft.waf.api.models.ModelEntry<?,?>>
extends javax.servlet.http.HttpServlet
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractOauthLoginController(com.google.common.collect.ImmutableMap<String,Oauth2ServiceProvider> oauthServiceProviders) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
_getFailedLoginUrl(String errorUrlDecoded,
String stateParameterUrlDecoded) |
protected abstract String |
_getNewLoginUrl(String stateParameterUrlDecoded) |
protected abstract String |
_getOauthCallbackUrlPathPrefix() |
protected com.google.common.base.Optional<String> |
_getOauthCallbackUrlScheme() |
protected abstract String |
_getSuccessfulLoginUrl(String stateParameterUrlDecoded) |
protected abstract com.google.common.base.Optional<UserEntryT> |
_getUser(String providerId,
OauthUserProfile userProfile) |
protected abstract void |
_login(UserEntryT userEntry) |
protected abstract UserEntryT |
_postUser(String providerId,
OauthUserProfile userProfile) |
protected void |
doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected AbstractOauthLoginController(com.google.common.collect.ImmutableMap<String,Oauth2ServiceProvider> oauthServiceProviders)
protected abstract String _getFailedLoginUrl(String errorUrlDecoded, String stateParameterUrlDecoded)
protected abstract String _getOauthCallbackUrlPathPrefix()
protected com.google.common.base.Optional<String> _getOauthCallbackUrlScheme()
protected abstract String _getSuccessfulLoginUrl(String stateParameterUrlDecoded)
protected abstract com.google.common.base.Optional<UserEntryT> _getUser(String providerId, OauthUserProfile userProfile) throws IoExceptionT extends org.thryft.waf.api.services.AbstractIoException
IoExceptionT extends org.thryft.waf.api.services.AbstractIoExceptionprotected abstract void _login(UserEntryT userEntry)
protected abstract UserEntryT _postUser(String providerId, OauthUserProfile userProfile) throws IOException
IOExceptionprotected final void doGet(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException
doGet in class javax.servlet.http.HttpServletIOExceptionCopyright © 2017. All rights reserved.