libkazv
sso_login_redirect.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
8 
9 
10 namespace Kazv::Api {
11 
21 class RedirectToSSOJob : public BaseJob {
22 public:
23 
24 
25 
26  static constexpr auto needsAuth() {
27  return
28  false;
29  }
30 
31 
32 // Construction/destruction
33 
40  explicit RedirectToSSOJob(std::string serverUrl
41 
42  ,
43  std::string redirectUrl
44  );
45 
46 
48  std::string redirectUrl);
49 
50  static BaseJob::Body buildBody(std::string redirectUrl);
51 
52 
53 
54 
55 
58  };
59 
60  }
61  namespace nlohmann
62  {
63  using namespace Kazv;
64  using namespace Kazv::Api;
65 
66  }
67 
68  namespace Kazv::Api
69  {
70 
80 class RedirectToIdPJob : public BaseJob {
81 public:
82 
83 
84 
85  static constexpr auto needsAuth() {
86  return
87  false;
88  }
89 
90 
91 // Construction/destruction
92 
103  explicit RedirectToIdPJob(std::string serverUrl
104 
105  ,
106  std::string idpId , std::string redirectUrl
107  );
108 
109 
110  static BaseJob::Query buildQuery(
111  std::string redirectUrl);
112 
113  static BaseJob::Body buildBody(std::string idpId, std::string redirectUrl);
114 
115 
116 
117 
118 
119  RedirectToIdPJob withData(JsonWrap j) &&;
120  RedirectToIdPJob withData(JsonWrap j) const &;
121  };
122 
123  }
124  namespace nlohmann
125  {
126  using namespace Kazv;
127  using namespace Kazv::Api;
128 
129  }
130 
131  namespace Kazv::Api
132  {
133 
134 } // namespace Kazv::Api
Redirect the user's browser to the SSO interface for an IdP.
Definition: sso_login_redirect.hpp:80
static constexpr auto needsAuth()
Definition: sso_login_redirect.hpp:85
Redirect the user's browser to the SSO interface.
Definition: sso_login_redirect.hpp:21
static BaseJob::Query buildQuery(std::string redirectUrl)
Definition: sso_login_redirect.cpp:13
RedirectToSSOJob(std::string serverUrl, std::string redirectUrl)
Redirect the user's browser to the SSO interface.
Definition: sso_login_redirect.cpp:34
static constexpr auto needsAuth()
Definition: sso_login_redirect.hpp:26
RedirectToSSOJob withData(JsonWrap j) &&
Definition: sso_login_redirect.cpp:54
static BaseJob::Body buildBody(std::string redirectUrl)
Definition: sso_login_redirect.cpp:22
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27