libkazv
openid.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"
9 
10 namespace Kazv::Api {
11 
24 public:
25 
26 
27 
28 class JobResponse : public Response
29 {
30 
31 public:
33  bool success() const;
34 
35  // Result properties
36 
37 
43 
45  {
46  return
47  std::move(jsonBody().get()).get<OpenIdCredentials>()
48  ;
49  }
50 
51 
52 };
53  static constexpr auto needsAuth() {
54  return true
55  ;
56  }
57 
58 
59 // Construction/destruction
60 
70  explicit RequestOpenIdTokenJob(std::string serverUrl
71  , std::string _accessToken
72  ,
73  std::string userId , JsonWrap body = {}
74  );
75 
76 
78  );
79 
80  static BaseJob::Body buildBody(std::string userId, JsonWrap body);
81 
82 
83 
84 
85 
88  };
90  }
91  namespace nlohmann
92  {
93  using namespace Kazv;
94  using namespace Kazv::Api;
95 
96  }
97 
98  namespace Kazv::Api
99  {
100 
101 } // namespace Kazv::Api
bool success() const
Definition: openid.cpp:71
OpenIdCredentials data() const
OpenID token information.
Definition: openid.hpp:44
JobResponse(Response r)
Definition: openid.cpp:68
Get an OpenID token object to verify the requester's identity.
Definition: openid.hpp:23
static BaseJob::Query buildQuery()
Definition: openid.cpp:13
static BaseJob::Body buildBody(std::string userId, JsonWrap body)
Definition: openid.cpp:21
RequestOpenIdTokenJob withData(JsonWrap j) &&
Definition: openid.cpp:54
RequestOpenIdTokenJob(std::string serverUrl, std::string _accessToken, std::string userId, JsonWrap body={})
Get an OpenID token object to verify the requester's identity.
Definition: openid.cpp:34
static constexpr auto needsAuth()
Definition: openid.hpp:53
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
Definition: openid_token.hpp:13
Definition: basejob.hpp:50
JsonWrap jsonBody() const
Definition: basejob.cpp:139