Package feast.common.auth.providers.http
Class HttpAuthorizationProvider
- java.lang.Object
-
- feast.common.auth.providers.http.HttpAuthorizationProvider
-
- All Implemented Interfaces:
AuthorizationProvider
public class HttpAuthorizationProvider extends Object implements AuthorizationProvider
HTTPAuthorizationProvider uses an external HTTP service for authorizing requests. Please see auth/src/main/resources/api.yaml for the API specification of this external service.
-
-
Constructor Summary
Constructors Constructor Description HttpAuthorizationProvider(Map<String,String> options)Initializes the HTTPAuthorizationProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationResultcheckAccessToProject(String projectId, org.springframework.security.core.Authentication authentication)Validates whether a user has access to a project.
-
-
-
Method Detail
-
checkAccessToProject
@Cacheable(value="authorization", keyGenerator="authKeyGenerator") public AuthorizationResult checkAccessToProject(String projectId, org.springframework.security.core.Authentication authentication)Validates whether a user has access to a project. @Cacheable is usingCacheConfigurationsettings to cache output of the methodAuthorizationResultfor a specified duration set in cache settings.- Specified by:
checkAccessToProjectin interfaceAuthorizationProvider- Parameters:
projectId- Name of the Feast projectauthentication- Spring Security Authentication object- Returns:
- AuthorizationResult result of authorization query
-
-