grafana/pkg/services/user
Eric Leijonmarck 72d0c6b428
Auth: add IsServiceAccount to IsRealUser (#58015)
* add: IsServiceAccount to SignedInUser and IsRealUser

* fix: linting error

* refactor: add function IsServiceAccountUser()

By adding the function IsServiceAccountUser() we use it to identify for
ServiceAccounts in the HasUniqueID() since caching is built up on having
a uniqueID, see comment: https://github.com/grafana/grafana/pull/58015#discussion_r1011361880
2022-11-04 12:39:54 +00:00
..
userimpl Auth: add IsServiceAccount to IsRealUser (#58015) 2022-11-04 12:39:54 +00:00
usertest Chore: Add NewAnonymousSignedInUser to user service (#57537) 2022-11-03 14:03:29 +01:00
model.go Auth: add IsServiceAccount to IsRealUser (#58015) 2022-11-04 12:39:54 +00:00
user.go Chore: Add NewAnonymousSignedInUser to user service (#57537) 2022-11-03 14:03:29 +01:00