public abstract class CelleryCellInterceptorService extends AuthorizationGrpc.AuthorizationImplBase
Inbound calls are intercepted to inject user attributes are headers to be consumed by services within the cell. Outbound calls are intercepted to inject authorization security required for authentication.
| Modifier and Type | Field and Description |
|---|---|
protected CelleryCellStsService |
cellStsService |
| Constructor and Description |
|---|
CelleryCellInterceptorService(CelleryCellStsService cellStsService) |
| Modifier and Type | Method and Description |
|---|---|
protected CellStsRequest |
buildCellStsRequest(ExternalAuth.CheckRequest requestFromProxy) |
void |
check(ExternalAuth.CheckRequest requestFromProxy,
io.grpc.stub.StreamObserver<ExternalAuth.CheckResponse> responseObserver)
Performs authorization check based on the attributes associated with the
incoming request, and returns status `OK` or not `OK`.
|
protected CellStsRequest.CellStsRequestBuilder |
getCellStsRequestBuilder(ExternalAuth.CheckRequest requestFromProxy) |
protected abstract void |
handleRequest(CellStsRequest cellStsRequest,
CellStsResponse cellStsResponse) |
bindServiceprotected CelleryCellStsService cellStsService
public CelleryCellInterceptorService(CelleryCellStsService cellStsService) throws CelleryCellSTSException
CelleryCellSTSExceptionpublic final void check(ExternalAuth.CheckRequest requestFromProxy, io.grpc.stub.StreamObserver<ExternalAuth.CheckResponse> responseObserver)
AuthorizationGrpc.AuthorizationImplBasePerforms authorization check based on the attributes associated with the incoming request, and returns status `OK` or not `OK`.
check in class AuthorizationGrpc.AuthorizationImplBaseprotected abstract void handleRequest(CellStsRequest cellStsRequest, CellStsResponse cellStsResponse) throws CelleryCellSTSException
CelleryCellSTSExceptionprotected CellStsRequest buildCellStsRequest(ExternalAuth.CheckRequest requestFromProxy) throws CelleryCellSTSException
CelleryCellSTSExceptionprotected CellStsRequest.CellStsRequestBuilder getCellStsRequestBuilder(ExternalAuth.CheckRequest requestFromProxy) throws CelleryCellSTSException
CelleryCellSTSExceptionCopyright © 2019 WSO2. All rights reserved.