io.buji.oauth.filter
Class OAuthPermissionsAuthorizationFilter
java.lang.Object
org.apache.shiro.web.servlet.ServletContextSupport
org.apache.shiro.web.servlet.AbstractFilter
org.apache.shiro.web.servlet.NameableFilter
org.apache.shiro.web.servlet.OncePerRequestFilter
org.apache.shiro.web.servlet.AdviceFilter
org.apache.shiro.web.filter.PathMatchingFilter
org.apache.shiro.web.filter.AccessControlFilter
org.apache.shiro.web.filter.authz.AuthorizationFilter
org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter
io.buji.oauth.filter.OAuthPermissionsAuthorizationFilter
- All Implemented Interfaces:
- javax.servlet.Filter, org.apache.shiro.util.Nameable, org.apache.shiro.web.filter.PathConfigProcessor
public final class OAuthPermissionsAuthorizationFilter
- extends org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter
This class specializes the PermissionsAuthorizationFilter to have a login url which is the authorization url of the OAuth provider.
- Since:
- 1.0.0
- Author:
- Jerome Leleu
| Fields inherited from class org.apache.shiro.web.filter.AccessControlFilter |
DEFAULT_LOGIN_URL, GET_METHOD, POST_METHOD |
| Fields inherited from class org.apache.shiro.web.filter.PathMatchingFilter |
appliedPaths, pathMatcher |
| Fields inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter |
ALREADY_FILTERED_SUFFIX |
| Fields inherited from class org.apache.shiro.web.servlet.AbstractFilter |
filterConfig |
| Methods inherited from class org.apache.shiro.web.filter.authz.PermissionsAuthorizationFilter |
isAccessAllowed |
| Methods inherited from class org.apache.shiro.web.filter.authz.AuthorizationFilter |
getUnauthorizedUrl, onAccessDenied, setUnauthorizedUrl |
| Methods inherited from class org.apache.shiro.web.filter.AccessControlFilter |
getSubject, isLoginRequest, onAccessDenied, onPreHandle, redirectToLogin, saveRequest, saveRequestAndRedirectToLogin, setLoginUrl |
| Methods inherited from class org.apache.shiro.web.filter.PathMatchingFilter |
getPathWithinApplication, isEnabled, pathsMatch, pathsMatch, preHandle, processPathConfig |
| Methods inherited from class org.apache.shiro.web.servlet.AdviceFilter |
afterCompletion, cleanup, doFilterInternal, executeChain, postHandle |
| Methods inherited from class org.apache.shiro.web.servlet.OncePerRequestFilter |
doFilter, getAlreadyFilteredAttributeName, isEnabled, isEnabled, setEnabled, shouldNotFilter |
| Methods inherited from class org.apache.shiro.web.servlet.NameableFilter |
getName, setName, toStringBuilder |
| Methods inherited from class org.apache.shiro.web.servlet.AbstractFilter |
destroy, getFilterConfig, getInitParam, init, onFilterConfigSet, setFilterConfig |
| Methods inherited from class org.apache.shiro.web.servlet.ServletContextSupport |
getContextAttribute, getContextInitParam, getServletContext, removeContextAttribute, setContextAttribute, setServletContext, toString |
OAuthPermissionsAuthorizationFilter
public OAuthPermissionsAuthorizationFilter()
getLoginUrl
public String getLoginUrl()
- Overrides:
getLoginUrl in class org.apache.shiro.web.filter.AccessControlFilter
setProvider
public void setProvider(org.scribe.up.provider.OAuthProvider provider)
Copyright © 2012. All Rights Reserved.