Search in sources :

Example 1 with RuleBuilder

use of ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder in project gpconnect-demonstrator by nhsconnect.

the class FhirRequestAuthInterceptor method buildRuleList.

@Override
public List<IAuthRule> buildRuleList(RequestDetails requestDetails) {
    WebToken webToken = webTokenFactory.getWebToken(requestDetails, futureRequestLeeway);
    validateClaim(webToken, requestDetails);
    validateIdentifier(webToken, requestDetails);
    return new RuleBuilder().allowAll().build();
}
Also used : RuleBuilder(ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder) WebToken(uk.gov.hscic.common.filters.model.WebToken)

Aggregations

RuleBuilder (ca.uhn.fhir.rest.server.interceptor.auth.RuleBuilder)1 WebToken (uk.gov.hscic.common.filters.model.WebToken)1