10Duke Scale C++ Client
All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
OIDCStateUtils.h
1#ifndef TENDUKE_OIDC_OIDCSTATEUTILS_H
2#define TENDUKE_OIDC_OIDCSTATEUTILS_H
3
4#include "./OIDCState.h"
5#include "json/JSONParser.h"
6#include "jwt/JWTParser.h"
7
8#include <memory>
9#include <string>
10
11namespace tenduke { namespace oidc {
12
18std::string stateToJson(const tenduke::oidc::OIDCState &state);
19
25std::string stateToJson(const std::shared_ptr<const tenduke::oidc::OIDCState> &state);
26
34std::unique_ptr<tenduke::oidc::OIDCState> stateFromJson(
35 const std::string &stateAsJson,
36 const tenduke::json::JSONParser &parser,
37 const tenduke::jwt::JWTParser &jwtParser
38);
39
40}}
41
42#endif //TENDUKE_OIDC_OIDCSTATEUTILS_H
Parser for JSON documents.
Definition JSONParser.h:15
Parses JWT.
Definition JWTParser.h:15
Container of OIDC state, describing the user session.
Definition OIDCState.h:17
std::string stateToJson(const tenduke::oidc::OIDCState &state)
Converts the state to JSON.
Definition OIDCStateUtils.cpp:21
std::unique_ptr< tenduke::oidc::OIDCState > stateFromJson(const std::string &stateAsJson, const tenduke::json::JSONParser &parser, const tenduke::jwt::JWTParser &jwtParser)
Parses JSON into tenduke::oidc::OIDCState.
Definition OIDCStateUtils.cpp:56
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7