| 13 | REGISTER_TYPE(ApiUser); |
| 14 | |
| 15 | ApiUser::Ptr ApiUser::GetByClientCN(const String& cn) |
| 16 | { |
| 17 | for (const ApiUser::Ptr& user : ConfigType::GetObjectsByType<ApiUser>()) { |
| 18 | if (user->GetClientCN() == cn) |
| 19 | return user; |
| 20 | } |
| 21 | |
| 22 | return nullptr; |
| 23 | } |
| 24 | |
| 25 | ApiUser::Ptr ApiUser::GetByAuthHeader(const String& auth_header) |
| 26 | { |
nothing calls this directly
no outgoing calls
no test coverage detected