41 if (! jo.is_object()) { jo = json::object(); }
56 if (jo.contains(
"access_token"s)) {
59 if (jo.contains(
"token_type"s)) {
62 if (jo.contains(
"matrix_server_name"s)) {
65 if (jo.contains(
"expires_in"s)) {
Definition: location.hpp:10
Definition: location.hpp:10
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:27
Definition: openid_token.hpp:13
int expiresIn
The number of seconds before this token expires and a new one must be generated.
Definition: openid_token.hpp:29
std::string tokenType
The string Bearer.
Definition: openid_token.hpp:21
std::string accessToken
An access token the consumer may use to verify the identity of the person who generated the token.
Definition: openid_token.hpp:18
std::string matrixServerName
The homeserver domain the consumer should use when attempting to verify the user's identity.
Definition: openid_token.hpp:25
static void to_json(json &jo, const OpenIdCredentials &pod)
Definition: openid_token.hpp:39
static void from_json(const json &jo, OpenIdCredentials &result)
Definition: openid_token.hpp:53