Public Access
refactor(api): one error body, token audiences, user lookup by id
This commit is contained in:
1 parent
68919eaab4
commit
afcfacb68b
30 files changed
+662
-199
No files matched your search
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"_about": "The token and internal-call contract between Auth and Core. The same file is in both repos; ToBePlayed-Deployment/scripts/check-contract.sh compares them. iat and exp are left out. legacyTokens are the shapes of an Auth from before item 26: Core and Auth accept them until item 29.",
|
||||
"tokens": {
|
||||
"login": {
|
||||
"iss": "tbp-auth",
|
||||
"aud": ["tbp-login"],
|
||||
"sub": "42",
|
||||
"userId": "42",
|
||||
"role": "USER",
|
||||
"steamId": 76561198000000001
|
||||
},
|
||||
"publicProfile": {
|
||||
"iss": "tbp-auth",
|
||||
"aud": ["tbp-public-profile"],
|
||||
"sub": "public-profile",
|
||||
"typ": "public-profile",
|
||||
"profileUserId": "42",
|
||||
"profileStats": ["OVERVIEW"],
|
||||
"sections": ["SUMMARY"]
|
||||
},
|
||||
"service": {
|
||||
"iss": "tbp-auth",
|
||||
"aud": ["tbp-internal"],
|
||||
"sub": "tbp-auth",
|
||||
"typ": "service"
|
||||
}
|
||||
},
|
||||
"legacyTokens": {
|
||||
"login": {
|
||||
"sub": "user@example.com",
|
||||
"userId": "42",
|
||||
"role": "USER",
|
||||
"steamId": 76561198000000001
|
||||
},
|
||||
"publicProfile": {
|
||||
"sub": "public-profile",
|
||||
"typ": "public-profile",
|
||||
"profileUserId": "42",
|
||||
"profileStats": ["OVERVIEW"],
|
||||
"sections": ["SUMMARY"]
|
||||
},
|
||||
"service": {
|
||||
"sub": "tbp-auth",
|
||||
"typ": "service"
|
||||
}
|
||||
},
|
||||
"internal": {
|
||||
"markDeleted": {
|
||||
"method": "POST",
|
||||
"path": "/internal/accounts/deleted",
|
||||
"request": {"userIds": [42]}
|
||||
},
|
||||
"replaceDeleted": {
|
||||
"method": "PUT",
|
||||
"path": "/internal/accounts/deleted",
|
||||
"request": {"userIds": []}
|
||||
},
|
||||
"purge": {
|
||||
"method": "POST",
|
||||
"path": "/internal/accounts/purge",
|
||||
"request": {"userIds": [42], "dryRun": false},
|
||||
"response": {"dryRun": true, "users": [42], "rows": {"user_game": 3}, "refused": false}
|
||||
},
|
||||
"prune": {
|
||||
"method": "POST",
|
||||
"path": "/internal/accounts/prune",
|
||||
"request": {"knownUserIds": [1, 42], "dryRun": true},
|
||||
"response": {"dryRun": true, "users": [42], "rows": {"user_game": 3}, "refused": false}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user