class AuthMetadataProcessor
Defined at line 35 of file ../../third_party/grpc-migrating/src/include/grpcpp/security/auth_metadata_processor.h
Interface allowing custom server-side authorization based on credentials
encoded in metadata. Objects of this type can be passed to
Please also check out
for another way to
do customized operations on the information provided by a specific call.
Public Methods
void ~AuthMetadataProcessor ()
Defined at line 40 of file ../../third_party/grpc-migrating/src/include/grpcpp/security/auth_metadata_processor.h
bool IsBlocking ()
If this method returns true, the
function will be scheduled in
a different thread from the one processing the call.
Defined at line 44 of file ../../third_party/grpc-migrating/src/include/grpcpp/security/auth_metadata_processor.h
grpc::Status Process (const InputMetadata & auth_metadata, grpc::AuthContext * context, OutputMetadata * consumed_auth_metadata, OutputMetadata * response_metadata)
Processes a Call associated with a connection.
auth_metadata: the authentication metadata associated with the particular
call
context: contains the connection-level info, e.g. the peer identity. This
parameter is readable and writable. Note that since the information is
shared for all calls associated with the connection, if the
implementation updates the info in a specific call, all the subsequent
calls will see the updates. A typical usage of context is to use
|auth_metadata| to infer the peer identity, and augment it with
properties.
consumed_auth_metadata: contains the metadata that the implementation
wants to remove from the current call, so that the server application is
no longer able to see it anymore. A typical usage would be to do token
authentication in the first call, and then remove the token information
for all subsequent calls.
response_metadata(CURRENTLY NOT SUPPORTED): the metadata that will be sent
as part of the response.
return: 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.