Public Access
feat(profile): role claim in the profile ticket
The public profile ticket now carries the user's role so Core can check ownership of shop items. PLATFORM_ADMIN gets every catalog item for free. The role comes from the users table; a ticket without the claim means USER.
This commit is contained in:
1 parent
6b6ac44551
commit
e72222a37f
9 files changed
+28
-12
No files matched your search
@@ -13,6 +13,7 @@
|
||||
"aud": ["tbp-public-profile"],
|
||||
"sub": "public-profile",
|
||||
"profileUserId": "42",
|
||||
"role": "USER",
|
||||
"profileStats": ["OVERVIEW"],
|
||||
"sections": ["SUMMARY"]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user