diff options
| author | alexnick <[email protected]> | 2022-02-17 14:23:34 +0300 |
|---|---|---|
| committer | alexnick <[email protected]> | 2022-02-17 14:23:34 +0300 |
| commit | fd03a905d0671edeffde43ade486dc608bf69d95 (patch) | |
| tree | d01659ada27349df9be25f8a8d5dab4f9ec4cd12 /library/cpp/tvmauth/src/status.cpp | |
| parent | 3dba88133a0e2bf63394fdba2affc51a771eff03 (diff) | |
remove tvm dependecy KIKIMR-14386
ref:d40a6e54d3da55ed1f9c9a0763552940acb0988b
Diffstat (limited to 'library/cpp/tvmauth/src/status.cpp')
| -rw-r--r-- | library/cpp/tvmauth/src/status.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/library/cpp/tvmauth/src/status.cpp b/library/cpp/tvmauth/src/status.cpp deleted file mode 100644 index 1b08fc098f9..00000000000 --- a/library/cpp/tvmauth/src/status.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include <library/cpp/tvmauth/ticket_status.h> - -#include <util/generic/yexception.h> - -namespace NTvmAuth { - TStringBuf StatusToString(ETicketStatus st) { - switch (st) { - case ETicketStatus::Ok: - return "OK"; - case ETicketStatus::Expired: - return "Expired ticket"; - case ETicketStatus::InvalidBlackboxEnv: - return "Invalid BlackBox environment"; - case ETicketStatus::InvalidDst: - return "Invalid ticket destination"; - case ETicketStatus::InvalidTicketType: - return "Invalid ticket type"; - case ETicketStatus::Malformed: - return "Malformed ticket"; - case ETicketStatus::MissingKey: - return "Context does not have required key to check ticket: public keys are too old"; - case ETicketStatus::SignBroken: - return "Invalid ticket signature"; - case ETicketStatus::UnsupportedVersion: - return "Unsupported ticket version"; - case ETicketStatus::NoRoles: - return "Subject (src or defaultUid) does not have any roles in IDM"; - } - - ythrow yexception() << "Unexpected status: " << static_cast<int>(st); - } -} |
