libQuotient
A Qt library for building matrix clients
openid.h
Go to the documentation of this file.
1
// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3
#
pragma
once
4
5
#
include
<
Quotient
/
csapi
/
definitions
/
openid_token
.
h
>
6
7
#
include
<
Quotient
/
jobs
/
basejob
.
h
>
8
9
namespace
Quotient {
10
11
//! \brief Get an OpenID token object to verify the requester's identity.
12
//!
13
//! Gets an OpenID token object that the requester may supply to another
14
//! service to verify their identity in Matrix. The generated token is only
15
//! valid for exchanging for user information from the federation API for
16
//! OpenID.
17
//!
18
//! The access token generated is only valid for the OpenID API. It cannot
19
//! be used to request another OpenID access token or call `/sync`, for
20
//! example.
21
class
QUOTIENT_API
RequestOpenIdTokenJob :
public
BaseJob {
22
public
:
23
//! \param userId
24
//! The user to request an OpenID token for. Should be the user who
25
//! is authenticated for the request.
26
//!
27
//! \param dontUse
28
//! An empty object. Reserved for future expansion.
29
explicit
RequestOpenIdTokenJob(
const
QString& userId,
const
QJsonObject& dontUse = {});
30
31
// Result properties
32
33
//! OpenID token information. This response is nearly compatible with the
34
//! response documented in the
35
//! [OpenID Connect 1.0
36
//! Specification](http://openid.net/specs/openid-connect-core-1_0.html#TokenResponse) with the
37
//! only difference being the lack of an `id_token`. Instead, the Matrix homeserver's name is
38
//! provided.
39
OpenIdCredentials tokenData()
const
{
return
fromJson<OpenIdCredentials>(jsonData()); }
40
};
41
42
inline
auto
collectResponse(
const
RequestOpenIdTokenJob* job) {
return
job->tokenData(); }
43
44
}
// namespace Quotient
Quotient
csapi
openid.h
Generated by
1.9.1