Auth: Fix function name (#100122)

Fix spelling
This commit is contained in:
Karl Persson
2025-02-05 15:32:22 +01:00
committed by GitHub
parent 64800f293e
commit 39d94eabcd
14 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -32,10 +32,10 @@ func checkNilRequester(r Requester) bool {
const serviceName = "service"
// WithServiceIdentitiy sets creates an identity representing the service itself in provided org and store it in context.
// WithServiceIdentity sets creates an identity representing the service itself in provided org and store it in context.
// This is useful for background tasks that has to communicate with unfied storage. It also returns a Requester with
// static permissions so it can be used in legacy code paths.
func WithServiceIdentitiy(ctx context.Context, orgID int64) (context.Context, Requester) {
func WithServiceIdentity(ctx context.Context, orgID int64) (context.Context, Requester) {
r := &StaticRequester{
Type: types.TypeAccessPolicy,
Name: serviceName,