public class ScopeBasedAuthorizationInterceptor
extends ca.uhn.fhir.rest.server.interceptor.auth.AuthorizationInterceptor
| Modifier and Type | Field and Description |
|---|---|
static String |
LAUNCH_CONTEXT_PATIENT_PARAM_NAME |
| Constructor and Description |
|---|
ScopeBasedAuthorizationInterceptor(org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyPatientScopeConditionalResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleConditional ruleOp,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
protected void |
applyPatientScopeOperationResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
org.hl7.fhir.instance.model.api.IIdType patientIdType,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
protected void |
applyPatientScopeResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleOp ruleOp,
org.hl7.fhir.instance.model.api.IIdType patientId,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
protected void |
applyUserScopeConditionalResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleConditional ruleOp,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
protected void |
applyUserScopeOperationResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
protected void |
applyUserScopeResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleOp ruleOp,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
org.hspconsortium.platform.api.authorization.SmartScope smartScope) |
List<ca.uhn.fhir.rest.server.interceptor.auth.IAuthRule> |
buildRuleList(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) |
protected void |
filterToPatientScope(org.hl7.fhir.instance.model.api.IIdType patientId,
org.hspconsortium.platform.api.authorization.SmartScope smartScope,
ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules) |
protected ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder |
filterToPatientScopes(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String patientId,
Set<org.hspconsortium.platform.api.authorization.SmartScope> smartScopes) |
protected void |
filterToUserScope(String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
org.hspconsortium.platform.api.authorization.SmartScope smartScope,
ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules) |
protected ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder |
filterToUserScopes(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
Set<org.hspconsortium.platform.api.authorization.SmartScope> smartScopes) |
applyRulesAndReturnDecision, getDefaultPolicy, getFlags, handleDeny, handleDeny, incomingRequestPreHandled, outgoingResponse, outgoingResponse, outgoingResponse, resourceCreated, resourceDeleted, resourceUpdated, setDefaultPolicy, setFlags, setFlagsresourcePreCreate, resourcePreDelete, resourcePreUpdate, resourceUpdatedhandleException, incomingRequestPostProcessed, incomingRequestPreProcessed, outgoingResponse, outgoingResponse, outgoingResponse, outgoingResponse, preProcessOutgoingException, processingCompletedNormallypublic static final String LAUNCH_CONTEXT_PATIENT_PARAM_NAME
public ScopeBasedAuthorizationInterceptor(org.springframework.security.oauth2.provider.token.TokenStore tokenStore,
org.springframework.security.oauth2.client.OAuth2RestTemplate oAuth2RestTemplate)
public List<ca.uhn.fhir.rest.server.interceptor.auth.IAuthRule> buildRuleList(ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails)
buildRuleList in class ca.uhn.fhir.rest.server.interceptor.auth.AuthorizationInterceptorprotected ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder filterToUserScopes(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
Set<org.hspconsortium.platform.api.authorization.SmartScope> smartScopes)
protected void filterToUserScope(String userId, List<org.springframework.security.core.GrantedAuthority> authorities, org.hspconsortium.platform.api.authorization.SmartScope smartScope, ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules)
protected void applyUserScopeResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleOp ruleOp,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
protected void applyUserScopeConditionalResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleConditional ruleOp,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
protected void applyUserScopeOperationResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String userId,
List<org.springframework.security.core.GrantedAuthority> authorities,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
protected ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder filterToPatientScopes(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
String patientId,
Set<org.hspconsortium.platform.api.authorization.SmartScope> smartScopes)
protected void filterToPatientScope(org.hl7.fhir.instance.model.api.IIdType patientId,
org.hspconsortium.platform.api.authorization.SmartScope smartScope,
ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules)
protected void applyPatientScopeResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleOp ruleOp,
org.hl7.fhir.instance.model.api.IIdType patientId,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
protected void applyPatientScopeConditionalResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilderRuleConditional ruleOp,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
protected void applyPatientScopeOperationResourceClassifier(ca.uhn.fhir.rest.server.interceptor.auth.IAuthRuleBuilder rules,
org.hl7.fhir.instance.model.api.IIdType patientIdType,
org.hspconsortium.platform.api.authorization.SmartScope smartScope)
Copyright © 2019 igia. All rights reserved.