aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp')
-rw-r--r--library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp b/library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp
deleted file mode 100644
index a87d3e705d..0000000000
--- a/library/cpp/tvmauth/client/examples/create_with_tvmtool/create.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-#include <library/cpp/tvmauth/client/facade.h>
-
-namespace NExample {
- // Possibility of using functions depends on config of tvmtool
- // CheckServiceTicket
- // CheckUserTicket
- // GetServiceTicketFor
-
- NTvmAuth::TTvmClient CreateClientInQloudOrYandexDeploy() {
- NTvmAuth::NTvmTool::TClientSettings setts(
- "my_service" // specified in Qloud/YP/tvmtool interface
- );
-
- NTvmAuth::TLoggerPtr log = MakeIntrusive<NTvmAuth::TCerrLogger>(7);
-
- NTvmAuth::TTvmClient c(setts, log);
-
- return c;
- }
-
- NTvmAuth::TTvmClient CreateClientForDevOrTests() {
- NTvmAuth::NTvmTool::TClientSettings setts(
- "my_service" // specified in Qloud/YP/tvmtool interface
- );
- setts.SetPort(18080);
- setts.SetAuthToken("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");
-
- NTvmAuth::TLoggerPtr log = MakeIntrusive<NTvmAuth::TCerrLogger>(7);
-
- NTvmAuth::TTvmClient c(setts, log);
-
- return c;
- }
-}