#include "auth_bearer.hpp"
#include "user_info_cache.hpp"
namespace samples::pg {
public:
static constexpr std::string_view kName = "handler-hello";
using HttpHandlerBase::HttpHandlerBase;
const override {
return "Hello world, " + ctx.
GetData<std::string>(
"name") +
"!\n";
}
};
}
int main(int argc, const char* const argv[]) {
server::handlers::auth::RegisterAuthCheckerFactory(
"bearer", std::make_unique<samples::pg::CheckerFactory>());
.
Append<samples::pg::AuthCache>()
.Append<components::Postgres>("auth-database")
.Append<components::TestsuiteSupport>()
}