From 20d84ad41162c35baead8dedc0c371cd8927a542 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Sat, 21 Nov 2026 13:12:35 +0300 Subject: [PATCH] Use JWT from userver --- .github/workflows/ci.yml | 5 +-- .github/workflows/docker.yaml | 2 - .gitmodules | 3 -- CMakeLists.txt | 7 --- README.md | 25 +++++++---- configs/config.yaml | 3 ++ docker-compose.yml | 1 + src/auth/jwt.cpp | 57 ++++++++++++++++++++++++ src/auth/jwt.hpp | 38 ++++++++++++++++ src/handlers/auth/auth_bearer.cpp | 33 +++++++------- src/handlers/auth/auth_bearer.hpp | 3 ++ src/handlers/users/user_get.cpp | 5 +-- src/handlers/users/user_get.hpp | 6 +-- src/handlers/users/user_handler_base.cpp | 24 ++++++++++ src/handlers/users/user_handler_base.hpp | 29 ++++++++++++ src/handlers/users/user_put.cpp | 5 +-- src/handlers/users/user_put.hpp | 6 +-- src/handlers/users/users.cpp | 4 +- src/handlers/users/users.hpp | 6 +-- src/handlers/users/users_login.cpp | 11 ++--- src/main.cpp | 2 + src/models/user.cpp | 2 - src/models/user_test.cpp | 14 ++++++ src/utils/jwt.cpp | 17 ------- src/utils/jwt.hpp | 12 ----- tests/conftest.py | 9 ++++ third_party/cpp-jwt | 1 - 27 files changed, 233 insertions(+), 97 deletions(-) delete mode 100644 .gitmodules create mode 100644 src/auth/jwt.cpp create mode 100644 src/auth/jwt.hpp create mode 100644 src/handlers/users/user_handler_base.cpp create mode 100644 src/handlers/users/user_handler_base.hpp create mode 100644 src/models/user_test.cpp delete mode 100644 src/utils/jwt.cpp delete mode 100644 src/utils/jwt.hpp delete mode 160000 third_party/cpp-jwt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67bc37e..9447e85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,6 @@ jobs: steps: - uses: actions/checkout@v7 - with: - submodules: true - name: Reuse ccache directory uses: actions/cache@v6 @@ -44,7 +42,7 @@ jobs: - name: Install packages run: | - (cd third_party && git clone -b develop --single-branch --depth 1 https://github.com/userver-framework/userver.git) + git clone -b develop --single-branch --depth 1 https://github.com/userver-framework/userver.git third_party/userver sudo apt update sudo apt install --allow-downgrades -y pycodestyle postgresql $(cat third_party/userver/scripts/docs/en/deps/${{matrix.os}}.md | tr '\n' ' ') @@ -83,6 +81,7 @@ jobs: - name: Test run after install if: matrix.make == 'test-release' run: | + export REALMEDIUM_JWT_SECRET="$(openssl rand -hex 32)" ./local_installation/bin/realmedium_sample \ --config=./local_installation/etc/realmedium_sample/config.yaml \ --config_vars=./local_installation/etc/realmedium_sample/config_vars.yaml \ diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 6052db7..e6cfc7a 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -18,8 +18,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 - with: - submodules: true - name: Reuse ccache directory uses: actions/cache@v6 diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 74a5834..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "third_party/cpp-jwt"] - path = third_party/cpp-jwt - url = https://github.com/arun11299/cpp-jwt diff --git a/CMakeLists.txt b/CMakeLists.txt index 733807a..f242314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,11 +21,6 @@ endif() userver_setup_environment() - -set(CPP_JWT_BUILD_TESTS OFF) -set(CPP_JWT_BUILD_EXAMPLES OFF) -add_subdirectory(third_party/cpp-jwt) - # Common sources file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.[hc]pp) file(GLOB_RECURSE UNIT_TEST_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*_test.cpp) @@ -56,8 +51,6 @@ userver_add_sql_library( ) target_link_libraries(${PROJECT_NAME}_objs PUBLIC ${PROJECT_NAME}_sql) -target_link_libraries(${PROJECT_NAME}_objs PUBLIC cpp-jwt) - find_package(ICU COMPONENTS uc i18n REQUIRED) target_link_libraries(${PROJECT_NAME}_objs PUBLIC ICU::uc ICU::i18n) diff --git a/README.md b/README.md index 8c6dc4d..39248cd 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,26 @@ This codebase was created to demonstrate a fully fledged backend application bui ### Prerequisites -[Install the userver](https://userver.tech/de/dab/md_en_2userver_2build_2build.html#ways_to_get_userver) into the system -or -* check it out `git clone --depth 1 https://github.com/userver-framework/userver.git /path/to/userver` -* install all of its dependencies -* `ln -s /path/to/userver /path/to/realmedioum_sample/third_party/userver` +Use a version of userver that provides ``. +[Install userver](https://userver.tech/de/dab/md_en_2userver_2build_2build.html#ways_to_get_userver) into the system +or clone it from the repository root and install its dependencies: -### Docker-compose ``` -# Clone submodules -git submodule update --init +git clone --branch develop --depth 1 https://github.com/userver-framework/userver.git third_party/userver +``` + +The `jwt` component reads its HS256 secret from `REALMEDIUM_JWT_SECRET` at +startup. It requires at least 32 bytes. Generate a key once for local use: + +```sh +export REALMEDIUM_JWT_SECRET="$(openssl rand -hex 32)" +``` + +Keep the same secret across restarts and replicas. Users with tokens signed +with the previous sample key must log in again. +### Docker-compose +``` # Run service make docker-start-service-release ``` diff --git a/configs/config.yaml b/configs/config.yaml index cfd90cd..ceb0f38 100644 --- a/configs/config.yaml +++ b/configs/config.yaml @@ -76,6 +76,9 @@ components_manager: throttling_enabled: false url_trailing_slash: strict-match + jwt: + secret#env: REALMEDIUM_JWT_SECRET + realmedium-database: dbconnection: $dbconnection dbconnection#env: DB_CONNECTION diff --git a/docker-compose.yml b/docker-compose.yml index fff69ce..5755c9c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,6 +23,7 @@ services: - POSTGRES_DB=realmedium_db-1 - POSTGRES_USER=user - POSTGRES_PASSWORD=password + - REALMEDIUM_JWT_SECRET - PREFIX=${PREFIX:-~/.local} - CC - CCACHE_DIR=/realmedium/.ccache diff --git a/src/auth/jwt.cpp b/src/auth/jwt.cpp new file mode 100644 index 0000000..6948490 --- /dev/null +++ b/src/auth/jwt.cpp @@ -0,0 +1,57 @@ +#include "jwt.hpp" + +#include +#include + +#include +#include +#include +#include + +namespace real_medium::auth { + +Jwt::Jwt(const userver::components::ComponentConfig& config, const userver::components::ComponentContext& context) + : ComponentBase(config, context), keys_(ReadKeys(config)) {} + +Jwt::Keys Jwt::ReadKeys(const userver::components::ComponentConfig& config) { + auto secret = config["secret"].As(); + if (secret.size() < 32) { + throw std::runtime_error("jwt.secret must contain at least 32 bytes for HS256"); + } + return {userver::crypto::SignerHs256{secret}, userver::crypto::VerifierHs256{std::move(secret)}}; +} + +std::string Jwt::MakeToken(std::string_view user_id) const { + return userver::crypto::jwt::MakeToken(userver::formats::json::MakeObject("id", user_id), keys_.signer); +} + +std::optional Jwt::VerifyUserId(std::string_view token) const { + userver::formats::json::Value payload; + try { + payload = userver::crypto::jwt::Verify( + token, keys_.verifier, {.expiration = userver::crypto::jwt::ExpirationPolicy::kOptional} + ).payload; + } catch (const userver::crypto::VerificationError&) { + return std::nullopt; + } + const auto id = payload["id"]; + if (!id.IsString()) { + return std::nullopt; + } + return id.As(); +} + +userver::yaml_config::Schema Jwt::GetStaticConfigSchema() { + return userver::yaml_config::MergeSchemas(R"( +type: object +description: Issues and verifies user tokens with HS256 +additionalProperties: false +required: [secret] +properties: + secret: + type: string + description: Shared HS256 secret of at least 32 bytes +)"); +} + +} // namespace real_medium::auth diff --git a/src/auth/jwt.hpp b/src/auth/jwt.hpp new file mode 100644 index 0000000..a013ac1 --- /dev/null +++ b/src/auth/jwt.hpp @@ -0,0 +1,38 @@ +#pragma once + +#include +#include +#include + +#include +#include +#include + +namespace real_medium::auth { + +class Jwt final : public userver::components::ComponentBase { +public: + static constexpr std::string_view kName = "jwt"; + + Jwt(const userver::components::ComponentConfig& config, const userver::components::ComponentContext& context); + + /// Issue a token with the user id in the "id" claim. + std::string MakeToken(std::string_view user_id) const; + + /// Return the verified user id, or nullopt for an invalid token. A missing expiration claim is allowed. + std::optional VerifyUserId(std::string_view token) const; + + static userver::yaml_config::Schema GetStaticConfigSchema(); + +private: + struct Keys { + userver::crypto::SignerHs256 signer; + userver::crypto::VerifierHs256 verifier; + }; + + static Keys ReadKeys(const userver::components::ComponentConfig& config); + + const Keys keys_; +}; + +} // namespace real_medium::auth diff --git a/src/handlers/auth/auth_bearer.cpp b/src/handlers/auth/auth_bearer.cpp index 2474f33..a714c86 100644 --- a/src/handlers/auth/auth_bearer.cpp +++ b/src/handlers/auth/auth_bearer.cpp @@ -1,9 +1,13 @@ #include "auth_bearer.hpp" +#include "auth/jwt.hpp" #include "db/sql.hpp" -#include "utils/jwt.hpp" -#include +#include +#include +#include +#include +#include #include #include #include @@ -14,8 +18,8 @@ class AuthCheckerBearer final : public userver::server::handlers::auth::AuthChec public: using AuthCheckResult = userver::server::handlers::auth::AuthCheckResult; - AuthCheckerBearer(userver::storages::postgres::ClusterPtr pg_cluster, bool is_required) - : pg_cluster_(std::move(pg_cluster)), is_required_(is_required) {} + AuthCheckerBearer(userver::storages::postgres::ClusterPtr pg_cluster, const Jwt& jwt, bool is_required) + : pg_cluster_(std::move(pg_cluster)), jwt_(jwt), is_required_(is_required) {} [[nodiscard]] AuthCheckResult CheckAuth( const userver::server::http::HttpRequest& request, @@ -26,6 +30,7 @@ class AuthCheckerBearer final : public userver::server::handlers::auth::AuthChec private: userver::storages::postgres::ClusterPtr pg_cluster_; + const Jwt& jwt_; const bool is_required_; }; @@ -52,15 +57,13 @@ AuthCheckerBearer::AuthCheckResult AuthCheckerBearer::CheckAuth( return AuthCheckResult{ AuthCheckResult::Status::kTokenNotFound, {}, - "'Authorization' header should have 'Bearer some-token' format", + "'Authorization' header should have 'Token some-token' format", userver::server::handlers::HandlerErrorCode::kUnauthorized }; } - std::string_view token{auth_value.c_str() + bearer_sep_pos + 1}; - jwt::jwt_payload payload; - try { - payload = utils::jwt::DecodeJWT(token); - } catch (...) { + const auto token = std::string_view{auth_value}.substr(bearer_sep_pos + 1); + auto id = jwt_.VerifyUserId(token); + if (!id) { return AuthCheckResult{ AuthCheckResult::Status::kTokenNotFound, {}, @@ -68,9 +71,8 @@ AuthCheckerBearer::AuthCheckResult AuthCheckerBearer::CheckAuth( userver::server::handlers::HandlerErrorCode::kUnauthorized }; } - auto id = payload.get_claim_value("id"); - const auto res = pg_cluster_->Execute(userver::storages::postgres::ClusterHostType::kSlave, sql::kFindUserById, id); + const auto res = pg_cluster_->Execute(userver::storages::postgres::ClusterHostType::kSlave, sql::kFindUserById, *id); if (res.IsEmpty()) { return AuthCheckResult{ AuthCheckResult::Status::kTokenNotFound, @@ -80,18 +82,19 @@ AuthCheckerBearer::AuthCheckResult AuthCheckerBearer::CheckAuth( }; } - request_context.SetData("id", std::optional(id)); + request_context.SetData("id", std::move(id)); return {}; } CheckerFactory::CheckerFactory(const userver::components::ComponentContext& context) - : pg_cluster_(context.FindComponent("realmedium-database").GetCluster()) {} + : pg_cluster_(context.FindComponent("realmedium-database").GetCluster()), + jwt_(context.FindComponent()) {} userver::server::handlers::auth::AuthCheckerBasePtr CheckerFactory::MakeAuthChecker( const userver::server::handlers::auth::HandlerAuthConfig& auth_config ) const { auto is_required = auth_config["required"].As(false); - return std::make_shared(pg_cluster_, is_required); + return std::make_shared(pg_cluster_, jwt_, is_required); } } // namespace real_medium::auth diff --git a/src/handlers/auth/auth_bearer.hpp b/src/handlers/auth/auth_bearer.hpp index c983e8a..f0dbaa4 100644 --- a/src/handlers/auth/auth_bearer.hpp +++ b/src/handlers/auth/auth_bearer.hpp @@ -5,6 +5,8 @@ namespace real_medium::auth { +class Jwt; + class CheckerFactory final : public userver::server::handlers::auth::AuthCheckerFactoryBase { public: static constexpr std::string_view kAuthType = "bearer"; @@ -16,6 +18,7 @@ class CheckerFactory final : public userver::server::handlers::auth::AuthChecker private: userver::storages::postgres::ClusterPtr pg_cluster_; + const Jwt& jwt_; }; } // namespace real_medium::auth diff --git a/src/handlers/users/user_get.cpp b/src/handlers/users/user_get.cpp index b493c53..f9faf64 100644 --- a/src/handlers/users/user_get.cpp +++ b/src/handlers/users/user_get.cpp @@ -23,10 +23,7 @@ userver::formats::json::Value Handler::HandleRequestJsonThrow( auto user = result.AsSingleRow(userver::storages::postgres::kRowTag); - userver::formats::json::ValueBuilder builder; - builder["user"] = user; - - return builder.ExtractValue(); + return MakeUserResponseWithToken(user); } } // namespace real_medium::handlers::users::get diff --git a/src/handlers/users/user_get.hpp b/src/handlers/users/user_get.hpp index da5530e..cf32c36 100644 --- a/src/handlers/users/user_get.hpp +++ b/src/handlers/users/user_get.hpp @@ -2,15 +2,15 @@ #include -#include "handlers/common.hpp" +#include "handlers/users/user_handler_base.hpp" namespace real_medium::handlers::users::get { -class Handler final : public Common { +class Handler final : public UserHandlerBase { public: static constexpr std::string_view kName = "handler-user-get"; - using Common::Common; + using UserHandlerBase::UserHandlerBase; userver::formats::json::Value HandleRequestJsonThrow( const userver::server::http::HttpRequest& request, diff --git a/src/handlers/users/user_handler_base.cpp b/src/handlers/users/user_handler_base.cpp new file mode 100644 index 0000000..4839d57 --- /dev/null +++ b/src/handlers/users/user_handler_base.cpp @@ -0,0 +1,24 @@ +#include "user_handler_base.hpp" + +#include +#include + +#include "auth/jwt.hpp" +#include "models/user.hpp" + +namespace real_medium::handlers { + +UserHandlerBase::UserHandlerBase( + const userver::components::ComponentConfig& config, + const userver::components::ComponentContext& context +) + : Common(config, context), jwt_(context.FindComponent()) {} + +userver::formats::json::Value UserHandlerBase::MakeUserResponseWithToken(const models::User& user) const { + userver::formats::json::ValueBuilder response; + response["user"] = user; + response["user"]["token"] = jwt_.MakeToken(user.id); + return response.ExtractValue(); +} + +} // namespace real_medium::handlers diff --git a/src/handlers/users/user_handler_base.hpp b/src/handlers/users/user_handler_base.hpp new file mode 100644 index 0000000..5969d58 --- /dev/null +++ b/src/handlers/users/user_handler_base.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include "handlers/common.hpp" + +namespace real_medium::auth { +class Jwt; +} + +namespace real_medium::models { +struct User; +} + +namespace real_medium::handlers { + +class UserHandlerBase : public Common { +public: + UserHandlerBase( + const userver::components::ComponentConfig& config, + const userver::components::ComponentContext& context + ); + +protected: + userver::formats::json::Value MakeUserResponseWithToken(const models::User& user) const; + +private: + const auth::Jwt& jwt_; +}; + +} // namespace real_medium::handlers diff --git a/src/handlers/users/user_put.cpp b/src/handlers/users/user_put.cpp index 40bfd0a..a06d8dd 100644 --- a/src/handlers/users/user_put.cpp +++ b/src/handlers/users/user_put.cpp @@ -46,10 +46,7 @@ userver::formats::json::Value Handler::HandleRequestJsonThrow( auto user_result_data = result.AsSingleRow(userver::storages::postgres::kRowTag); - userver::formats::json::ValueBuilder builder; - builder["user"] = user_result_data; - - return builder.ExtractValue(); + return MakeUserResponseWithToken(user_result_data); } } // namespace real_medium::handlers::users::put diff --git a/src/handlers/users/user_put.hpp b/src/handlers/users/user_put.hpp index e65c075..a7dd125 100644 --- a/src/handlers/users/user_put.hpp +++ b/src/handlers/users/user_put.hpp @@ -1,14 +1,14 @@ #pragma once -#include "handlers/common.hpp" +#include "handlers/users/user_handler_base.hpp" namespace real_medium::handlers::users::put { -class Handler final : public Common { +class Handler final : public UserHandlerBase { public: static constexpr std::string_view kName = "handler-user-put"; - using Common::Common; + using UserHandlerBase::UserHandlerBase; userver::formats::json::Value HandleRequestJsonThrow( const userver::server::http::HttpRequest& request, diff --git a/src/handlers/users/users.cpp b/src/handlers/users/users.cpp index 5c17a03..fead186 100644 --- a/src/handlers/users/users.cpp +++ b/src/handlers/users/users.cpp @@ -47,9 +47,7 @@ userver::formats::json::Value RegisterUser:: return utils::error::MakeError(ex.GetServerMessage().GetConstraint(), ex.GetServerMessage().GetDetail()); } - userver::formats::json::ValueBuilder builder; - builder["user"] = result_user; - return builder.ExtractValue(); + return MakeUserResponseWithToken(result_user); } } // namespace real_medium::handlers::users::post diff --git a/src/handlers/users/users.hpp b/src/handlers/users/users.hpp index cc6d5a2..09bf7d2 100644 --- a/src/handlers/users/users.hpp +++ b/src/handlers/users/users.hpp @@ -2,14 +2,14 @@ #include -#include "handlers/common.hpp" +#include "handlers/users/user_handler_base.hpp" namespace real_medium::handlers::users::post { -class RegisterUser final : public Common { +class RegisterUser final : public UserHandlerBase { public: static constexpr std::string_view kName = "handler-register-user"; - using Common::Common; + using UserHandlerBase::UserHandlerBase; userver::formats::json::Value HandleRequestJsonThrow( const userver::server::http::HttpRequest& request, const userver::formats::json::Value& request_json, diff --git a/src/handlers/users/users_login.cpp b/src/handlers/users/users_login.cpp index 83936f2..e18c3a6 100644 --- a/src/handlers/users/users_login.cpp +++ b/src/handlers/users/users_login.cpp @@ -7,7 +7,7 @@ #include #include "db/sql.hpp" -#include "handlers/common.hpp" +#include "handlers/users/user_handler_base.hpp" #include "models/user.hpp" #include "utils/errors.hpp" #include "validators/validators.hpp" @@ -16,11 +16,11 @@ namespace real_medium::handlers::users_login::post { namespace { -class LoginUser final : public Common { +class LoginUser final : public UserHandlerBase { public: static constexpr std::string_view kName = "handler-login-user"; - using Common::Common; + using UserHandlerBase::UserHandlerBase; userver::formats::json::Value HandleRequestJsonThrow(const userver::server::http::HttpRequest& request, const userver::formats::json::Value& request_json, userver::server::request::RequestContext&) @@ -60,10 +60,7 @@ class LoginUser final : public Common { auto user = user_result.AsSingleRow(userver::storages::postgres::kRowTag); - userver::formats::json::ValueBuilder response; - response["user"] = user; - - return response.ExtractValue(); + return MakeUserResponseWithToken(user); } }; diff --git a/src/main.cpp b/src/main.cpp index bf710e2..1be2cec 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -7,6 +7,7 @@ #include #include +#include "auth/jwt.hpp" #include "handlers/auth/auth_bearer.hpp" #include "handlers/profiles/profiles.hpp" @@ -43,6 +44,7 @@ int main(int argc, char* argv[]) { auto component_list = userver::components::MinimalServerComponentList() .Append() .Append() + .Append() .Append() .Append() .AppendComponentList(userver::clients::http::ComponentList()) diff --git a/src/models/user.cpp b/src/models/user.cpp index 86d6e2b..9a9ff9f 100644 --- a/src/models/user.cpp +++ b/src/models/user.cpp @@ -1,5 +1,4 @@ #include "user.hpp" -#include "utils/jwt.hpp" #include @@ -10,7 +9,6 @@ Serialize(const User& user, userver::formats::serialize::To + +namespace real_medium::models { + +TEST(User, SerializeDoesNotIssueToken) { + User user{}; + user.id = "user-1"; + const auto json = userver::formats::json::ValueBuilder{user}.ExtractValue(); + EXPECT_FALSE(json.HasMember("token")); +} + +} // namespace real_medium::models diff --git a/src/utils/jwt.cpp b/src/utils/jwt.cpp deleted file mode 100644 index dbdb977..0000000 --- a/src/utils/jwt.cpp +++ /dev/null @@ -1,17 +0,0 @@ -#include "jwt.hpp" -#include -namespace real_medium::utils::jwt { - -using namespace ::jwt::params; - -std::string GenerateJWT(std::string_view id) { - ::jwt::jwt_object obj{algorithm("HS256"), secret("secret"), payload({{"id", id}})}; - return obj.signature(); -} - -::jwt::jwt_payload DecodeJWT(std::string_view jwt_token) { - auto dec_obj = ::jwt::decode(jwt_token, algorithms({"HS256"}), secret("secret"), verify(true)); - return dec_obj.payload(); -} - -} // namespace real_medium::utils::jwt diff --git a/src/utils/jwt.hpp b/src/utils/jwt.hpp deleted file mode 100644 index a1346a3..0000000 --- a/src/utils/jwt.hpp +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once - -#include - -#include - -namespace real_medium::utils::jwt { - -std::string GenerateJWT(std::string_view id); -::jwt::jwt_payload DecodeJWT(std::string_view jwt_token); - -} // namespace real_medium::utils::jwt diff --git a/tests/conftest.py b/tests/conftest.py index df48f75..7280d59 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,5 @@ import os +import secrets import sys import pytest @@ -11,6 +12,14 @@ pytest_plugins = ['pytest_userver.plugins.postgresql'] +@pytest.fixture(scope='session') +def service_env(service_env): + secret = os.environ.get('REALMEDIUM_JWT_SECRET') + if secret is None: + secret = secrets.token_hex(32) + return {**service_env, 'REALMEDIUM_JWT_SECRET': secret} + + @pytest.fixture(scope='session') def pgsql_local(service_source_dir, pgsql_local_create): """Create schemas databases for tests""" diff --git a/third_party/cpp-jwt b/third_party/cpp-jwt deleted file mode 160000 index 10ef573..0000000 --- a/third_party/cpp-jwt +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 10ef5735d842b31025f1257ae78899f50a40fb14