mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-13 15:29:12 +01:00
s3api: keep token claims from asserting trusted issuers on STS sessions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fc8f4c6ecb
commit
3810ba2133
1 file changed
+2
@@ -530,6 +530,8 @@ func (iam *IdentityAccessManagement) validateSTSSessionToken(r *http.Request, se
|
||||
for k, v := range sessionInfo.RequestContext {
|
||||
claims[k] = v
|
||||
}
|
||||
// Token attributes reach the request context; only the bearer path asserts trusted issuers.
|
||||
delete(claims, "seaweed:oidc-issuers")
|
||||
// The session's user is the one it was issued to, never a claim the
|
||||
// identity provider forwarded.
|
||||
if sessionInfo.ExternalUserId != "" {
|
||||
|
||||
Reference in new issue
Block a user