libkazv
Loading...
Searching...
No Matches
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
10namespace Kazv::Api {
11
24public:
25
26
27
28class JobResponse : public Response
29{
30
31public:
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
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
static constexpr auto needsAuth()
Definition openid.hpp:53
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition openid_token.hpp:13
Definition basejob.hpp:49
JsonWrap jsonBody() const
Definition basejob.cpp:141