7 {
10
12
13 if (!req->query("code").empty()) {
14 res->sendFile("/home/rathalin/projects/snode.c/src/oauth2/client_app/vue-frontend-oauth2-client/dist/index.html",
15 [req](int ret) {
16 if (ret != 0) {
17 PLOG(ERROR) << req->url;
18 }
19 });
20
21
22
23
24
25
26
27
28
29
30
31
32 }
33 });
34
36
38 switch (state) {
40 VLOG(1) << "OAuth2Client: connected to '" << socketAddress.toString() << "'";
41 break;
43 VLOG(1) << "OAuth2Client: disabled";
44 break;
46 VLOG(1) << "OAuth2Client: error occurred";
47 break;
49 VLOG(1) << "OAuth2Client: fatal error occurred";
50 break;
51 }
52 });
53
55}
#define APPLICATION(req, res)
static constexpr int DISABLED
static constexpr int ERROR
static constexpr int FATAL
typename Server::SocketAddress SocketAddress
static void init(int argc, char *argv[])
static int start(const utils::Timeval &timeOut={LONG_MAX, 0})