@Service
@Properties(value={@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="service.description",value="Authentication Handler for Sling Authentication XING OAuth"),@Property(name="service.ranking",intValue=0,propertyPrivate=false),@Property(name="path",value="/",unbounded=ARRAY),@Property(name="authtype",value="xing-oauth",propertyPrivate=true)})
public class XingOauthAuthenticationHandler
extends org.apache.sling.auth.core.spi.DefaultAuthenticationFeedbackHandler
implements org.apache.sling.auth.core.spi.AuthenticationHandler
Modifier and Type | Field and Description |
---|---|
static String |
USER_SESSION_ATTRIBUTE_NAME |
Constructor and Description |
---|
XingOauthAuthenticationHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext) |
protected void |
configure(org.osgi.service.component.ComponentContext componentContext) |
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext) |
void |
dropCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
org.apache.sling.auth.core.spi.AuthenticationInfo |
extractCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected org.apache.sling.auth.xing.api.XingUser |
fetchUser(org.scribe.model.Token accessToken) |
protected void |
modified(org.osgi.service.component.ComponentContext componentContext) |
protected void |
removeAuthFromSession(javax.servlet.http.HttpServletRequest request) |
boolean |
requestCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public static final String USER_SESSION_ATTRIBUTE_NAME
@Activate protected void activate(org.osgi.service.component.ComponentContext componentContext)
@Modified protected void modified(org.osgi.service.component.ComponentContext componentContext)
@Deactivate protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
protected void configure(org.osgi.service.component.ComponentContext componentContext)
public org.apache.sling.auth.core.spi.AuthenticationInfo extractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
extractCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
public boolean requestCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
requestCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
IOException
public void dropCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
dropCredentials
in interface org.apache.sling.auth.core.spi.AuthenticationHandler
IOException
protected org.apache.sling.auth.xing.api.XingUser fetchUser(org.scribe.model.Token accessToken) throws Exception
Exception
protected void removeAuthFromSession(javax.servlet.http.HttpServletRequest request)
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.