Replace User
request.identity
usages with UserContext
#15748
Labels
security
Security-related issues and pull requests
Following #15581 and #15590: we now have three types that a
request.identity
can be:User
when the identity is a user backed by a login sessionUserTokenContext
when the identity is a user backed by an API token (i.e. macaroon)PublisherTokenContext
when the identity is anOIDCPublisher
backed by an API tokenOf these,
User
andUserTokenContext
are confusable and prone to error. We should probably collapse them into a singleUserContext
type of the following shape:...with that, we'll be able to remove
UserTokenContext
and simplifyrequest.identity
back down to just two types.The text was updated successfully, but these errors were encountered: