Package com.atlassian.bamboo.security
Interface ScopesRequestCacheDelegate
- All Known Implementing Classes:
DefaultScopesRequestCacheDelegate
public interface ScopesRequestCacheDelegate
Delegate class for ScopesRequestCache which is provided by the oauth2-scopes-plugin.
As the plugin could be disabled or uninstalled at any time this class ensures that the Application will continue to run as expected in that unlikely scenario
See below for the implementation of ScopesRequestCache and the corresponding filter that adds the scopes to the RequestCache
https://stash.atlassian.com/projects/CWD/repos/atlassian-oauth2/browse/scopes/scopes-plugin/src/main/java/com/atlassian/oauth2/scopes/request/DefaultScopesRequestCache.java
https://stash.atlassian.com/projects/CWD/repos/atlassian-oauth2/browse/provider/provider-core/src/main/java/com/atlassian/oauth2/provider/core/web/AccessTokenFilter.java
- Since:
- 9.1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidcom.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCachebooleanhasGlobalPermission(BambooPermission permission) True iff the current scope allows specified global permission to be granted for current user, in current request scope.booleanhasPermission(BambooPermission permission) True iff the current scope allows specified object-level (plan, deployment,...) permission to be granted for current user, in current request scope.voidsetRequestCache(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache)
-
Method Details
-
hasPermission
True iff the current scope allows specified object-level (plan, deployment,...) permission to be granted for current user, in current request scope. -
hasGlobalPermission
True iff the current scope allows specified global permission to be granted for current user, in current request scope. -
getApplicationNameForRequest
-
getRequestCache
com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache getRequestCache() -
setRequestCache
void setRequestCache(com.atlassian.oauth2.scopes.api.ScopesRequestCache.RequestCache requestCache) -
clearRequestCache
void clearRequestCache()
-