]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_web_idp.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_web_idp.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
4 #ifndef CEPH_RGW_WEB_IDP_H
5 #define CEPH_RGW_WEB_IDP_H
6
7 namespace rgw {
8 namespace web_idp {
9
10 //WebToken contains some claims from the decoded token which are of interest to us.
11 struct WebTokenClaims {
12 //Subject of the token
13 std::string sub;
14 //Intended audience for this token
15 std::string aud;
16 //Issuer of this token
17 std::string iss;
18 //Human-readable id for the resource owner
19 string user_name;
20 };
21
22 }; /* namespace web_idp */
23 }; /* namespace rgw */
24
25 #endif /* CEPH_RGW_WEB_IDP_H */