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
Kazv::Api::RedirectToSSOJob::buildQuery
static BaseJob::Query buildQuery(std::string redirectUrl)
Definition: sso_login_redirect.cpp:15
Kazv::Api::RedirectToSSOJob
Redirect the user's browser to the SSO interface.
Definition: sso_login_redirect.hpp:23
Kazv::Api::RedirectToSSOJob::withData
RedirectToSSOJob withData(JsonWrap j) &&
Definition: sso_login_redirect.cpp:56
Kazv::Api::RedirectToSSOJob::buildBody
static BaseJob::Body buildBody(std::string redirectUrl)
Definition: sso_login_redirect.cpp:24
Kazv::Api::RedirectToIdPJob::needsAuth
static constexpr auto needsAuth()
Definition: sso_login_redirect.hpp:85
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
Kazv::Api::RedirectToSSOJob::RedirectToSSOJob
RedirectToSSOJob(std::string serverUrl, std::string redirectUrl)
Redirect the user's browser to the SSO interface.
Definition: sso_login_redirect.cpp:36
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api
Definition: location.hpp:10
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::BaseJob
Definition: basejob.hpp:76
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::RedirectToSSOJob::needsAuth
static constexpr auto needsAuth()
Definition: sso_login_redirect.hpp:30
Kazv::Api::RedirectToIdPJob
Redirect the user's browser to the SSO interface for an IdP.
Definition: sso_login_redirect.hpp:80