auth.cpp 409 B

12345678910111213141516171819202122
  1. #include "auth.h"
  2. #include <util/generic/hash_set.h>
  3. namespace NMonitoring {
  4. namespace {
  5. class TFakeAuthProvider final: public IAuthProvider {
  6. public:
  7. TAuthResult Check(const IHttpRequest&) override {
  8. return TAuthResult::Ok();
  9. }
  10. };
  11. } // namespace
  12. THolder<IAuthProvider> CreateFakeAuth() {
  13. return MakeHolder<TFakeAuthProvider>();
  14. }
  15. } // namespace NMonitoring