10Duke Scale C++ Client
Loading...
Searching...
No Matches
JWTTestUtils.h
1#ifndef TENDUKE_TEST_UTILS_JWTTESTUTILS_H
2#define TENDUKE_TEST_UTILS_JWTTESTUTILS_H
3
4#include "../mocks/JWTParserMock.h"
5#include "jwt/JWT.h"
6#include <string>
7#include <utility>
8
9namespace tenduke { namespace test { namespace utils {
10
11::tenduke::jwt::JWT createJWT(
12 const std::string &keyId,
13 std::initializer_list<std::pair<std::string, std::string>> claims
14);
15
16/*
17::tenduke::jwt::JWT createJWT(
18 std::initializer_list<std::pair<std::string, std::string>> claims
19);
20 */
21
22void stubJWT(
24 std::string serializedJWT,
25 std::initializer_list<std::pair<std::string, std::string>> claims
26);
27
28void stubJWT(
30 std::string serializedJWT,
31 std::string keyId,
32 std::initializer_list<std::pair<std::string, std::string>> claims
33);
34
35
36std::pair<std::string, std::string> mkClaim(
37 const std::string name,
38 const std::string value
39);
40
41
42}}}
43
44
45#endif //TENDUKE_TEST_UTILS_JWTTESTUTILS_H
Very simple JWT implementation.
Definition JWT.h:31
Definition JWTParserMock.h:9
Root for classes, functions and globals of 10Duke C++ Client.
Definition BackendConfiguration.h:7