diff options
| author | molotkov-and <[email protected]> | 2022-11-18 12:50:29 +0300 |
|---|---|---|
| committer | molotkov-and <[email protected]> | 2022-11-18 12:50:29 +0300 |
| commit | a45acb262bfb6f7d06d70f9f04a763d61e811966 (patch) | |
| tree | 2e4eacaa4f1ecfba0bea894abf4888b7718712ad /library/cpp/grpc/server/grpc_async_ctx_base.h | |
| parent | d563b5b3a6578243440353c5cfafdb56cc05fff3 (diff) | |
Authorization of registration node
Diffstat (limited to 'library/cpp/grpc/server/grpc_async_ctx_base.h')
| -rw-r--r-- | library/cpp/grpc/server/grpc_async_ctx_base.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/library/cpp/grpc/server/grpc_async_ctx_base.h b/library/cpp/grpc/server/grpc_async_ctx_base.h index 51356d4ce5a..079bce4102f 100644 --- a/library/cpp/grpc/server/grpc_async_ctx_base.h +++ b/library/cpp/grpc/server/grpc_async_ctx_base.h @@ -69,6 +69,16 @@ public: return values; } + TVector<TStringBuf> FindClientCert() const { + auto authContext = Context.auth_context(); + + TVector<TStringBuf> values; + for (auto& value: authContext->FindPropertyValues(GRPC_X509_PEM_CERT_PROPERTY_NAME)) { + values.emplace_back(value.data(), value.size()); + } + return values; + } + grpc_compression_level GetCompressionLevel() const { return Context.compression_level(); } |
