From 19fcec84d8d7d21e796c7624e521b60d28ee21ed Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:45:59 +0200 Subject: Adding upstream version 16.2.11+ds. Signed-off-by: Daniel Baumann --- src/rgw/rgw_web_idp.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/rgw/rgw_web_idp.h (limited to 'src/rgw/rgw_web_idp.h') diff --git a/src/rgw/rgw_web_idp.h b/src/rgw/rgw_web_idp.h new file mode 100644 index 000000000..089c4da66 --- /dev/null +++ b/src/rgw/rgw_web_idp.h @@ -0,0 +1,29 @@ +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// vim: ts=8 sw=2 smarttab ft=cpp + +#ifndef CEPH_RGW_WEB_IDP_H +#define CEPH_RGW_WEB_IDP_H + +namespace rgw { +namespace web_idp { + +//WebToken contains some claims from the decoded token which are of interest to us. +struct WebTokenClaims { + //Subject of the token + std::string sub; + //Intended audience for this token + std::string aud; + //Issuer of this token + std::string iss; + //Human-readable id for the resource owner + std::string user_name; + //Client Id + std::string client_id; + //azp + std::string azp; +}; + +}; /* namespace web_idp */ +}; /* namespace rgw */ + +#endif /* CEPH_RGW_WEB_IDP_H */ -- cgit v1.2.3