From c57841fa2eea70c6a8dc786572923aaa9a8e6a84 Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Wed, 14 Apr 2021 13:26:58 -0400 Subject: [PATCH] Update wording for user not found to indicate the auth method isn't primary for the scope --- internal/iam/repository_user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/iam/repository_user.go b/internal/iam/repository_user.go index d5d32cd44..392237bce 100644 --- a/internal/iam/repository_user.go +++ b/internal/iam/repository_user.go @@ -244,7 +244,7 @@ func (r *Repository) LookupUserWithLogin(ctx context.Context, accountId string, return nil, errors.Wrap(err, op) } if !allowed { - return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s", accountId)) + return nil, errors.New(errors.RecordNotFound, op, fmt.Sprintf("user not found for account %s and auth method is not primary for the scope so refusing to auto-create user", accountId)) } metadata := oplog.Metadata{