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 
23 class RequestOpenIdTokenJob : public BaseJob {
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 
44  OpenIdCredentials data() const
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
Kazv::Api::RequestOpenIdTokenJob::JobResponse::data
OpenIdCredentials data() const
OpenID token information.
Definition: openid.hpp:50
Kazv::Response::jsonBody
JsonWrap jsonBody() const
Definition: basejob.cpp:139
Kazv::Api::RequestOpenIdTokenJob
Get an OpenID token object to verify the requester's identity.
Definition: openid.hpp:25
nlohmann
Definition: location.hpp:26
Kazv::Api::RequestOpenIdTokenJob::buildQuery
static BaseJob::Query buildQuery()
Definition: openid.cpp:15
Kazv
Definition: location.hpp:10
Kazv::Api::RequestOpenIdTokenJob::JobResponse::success
bool success() const
Definition: openid.cpp:73
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::RequestOpenIdTokenJob::JobResponse
Definition: openid.hpp:32
Kazv::Api::RequestOpenIdTokenJob::RequestOpenIdTokenJob
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:36
Kazv::Api
Definition: location.hpp:10
Kazv::Api::OpenIdCredentials
Definition: openid_token.hpp:14
Kazv::Api::RequestOpenIdTokenJob::needsAuth
static constexpr auto needsAuth()
Definition: openid.hpp:57
Kazv::Api::RequestOpenIdTokenJob::buildBody
static BaseJob::Body buildBody(std::string userId, JsonWrap body)
Definition: openid.cpp:23
basejob.hpp
openid_token.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::RequestOpenIdTokenJob::withData
RequestOpenIdTokenJob withData(JsonWrap j) &&
Definition: openid.cpp:56
Kazv::Api::RequestOpenIdTokenJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: openid.cpp:70
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Response
Definition: basejob.hpp:50