fix(32.2): WR-03 refuse an unknown MCPGrant.Subject instead of treating it as a user grant
pier now resolves only the empty subject (frontend user grant) and pact.MCPGrantSubjectBackend; any other value is ErrUnauthorized and never reaches the linked-administrator lookup.
This commit is contained in:
@@ -305,7 +305,8 @@ type MCPGrant struct {
|
||||
// Subject is the kind of subject the grant names. Empty means the
|
||||
// frontend user in UserID, the meaning every grant had before Subject
|
||||
// existed. MCPGrantSubjectBackend means the backend account in
|
||||
// BackendUserID, with UserID 0 and no frontend user involved.
|
||||
// BackendUserID, with UserID 0 and no frontend user involved. The MCP
|
||||
// endpoint refuses a grant with any other value.
|
||||
Subject string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user