Interface allowing custom server-side authorization based on credentials encoded in metadata.
More...
#include <auth_metadata_processor_impl.h>
Interface allowing custom server-side authorization based on credentials encoded in metadata.
Objects of this type can be passed to ServerCredentials::SetAuthMetadataProcessor().
◆ InputMetadata
◆ OutputMetadata
◆ ~AuthMetadataProcessor()
virtual grpc_impl::AuthMetadataProcessor::~AuthMetadataProcessor |
( |
| ) |
|
|
inlinevirtual |
◆ IsBlocking()
virtual bool grpc_impl::AuthMetadataProcessor::IsBlocking |
( |
| ) |
const |
|
inlinevirtual |
If this method returns true, the Process function will be scheduled in a different thread from the one processing the call.
◆ Process()
context is read/write: it contains the properties of the channel peer and it is the job of the Process method to augment it with properties derived from the passed-in auth_metadata.
consumed_auth_metadata needs to be filled with metadata that has been consumed by the processor and will be removed from the call. response_metadata is the metadata that will be sent as part of the response. If the return value is not Status::OK, the rpc call will be aborted with the error code and error message sent back to the client.
The documentation for this class was generated from the following file: