@@ -240,7 +240,7 @@ func (s *RedisStorage) RegisterClient(ctx context.Context, client fosite.Client)
240240 Public : client .IsPublic (),
241241 }
242242
243- data , err := json .Marshal (stored )
243+ data , err := json .Marshal (stored ) //nolint:gosec // G117 - internal Redis storage serialization, not exposed to users
244244 if err != nil {
245245 return fmt .Errorf ("failed to marshal client: %w" , err )
246246 }
@@ -760,7 +760,7 @@ func marshalUpstreamTokensWithTTL(tokens *UpstreamTokens) ([]byte, time.Duration
760760 ClientID : tokens .ClientID ,
761761 }
762762
763- data , err := json .Marshal (stored )
763+ data , err := json .Marshal (stored ) //nolint:gosec // G117 - internal Redis storage serialization, not exposed to users
764764 if err != nil {
765765 return nil , 0 , fmt .Errorf ("failed to marshal upstream tokens: %w" , err )
766766 }
@@ -932,7 +932,7 @@ func (s *RedisStorage) StorePendingAuthorization(ctx context.Context, state stri
932932 CreatedAt : pending .CreatedAt .Unix (),
933933 }
934934
935- data , err := json .Marshal (stored )
935+ data , err := json .Marshal (stored ) //nolint:gosec // G117 - internal Redis storage serialization, not exposed to users
936936 if err != nil {
937937 return fmt .Errorf ("failed to marshal pending authorization: %w" , err )
938938 }
@@ -1021,7 +1021,7 @@ func (s *RedisStorage) CreateUser(ctx context.Context, user *User) error {
10211021 UpdatedAt : user .UpdatedAt .Unix (),
10221022 }
10231023
1024- data , err := json .Marshal (stored )
1024+ data , err := json .Marshal (stored ) //nolint:gosec // G117 - internal Redis storage serialization, not exposed to users
10251025 if err != nil {
10261026 return fmt .Errorf ("failed to marshal user: %w" , err )
10271027 }
@@ -1153,7 +1153,7 @@ func (s *RedisStorage) CreateProviderIdentity(ctx context.Context, identity *Pro
11531153 LastUsedAt : identity .LastUsedAt .Unix (),
11541154 }
11551155
1156- data , err := json .Marshal (stored )
1156+ data , err := json .Marshal (stored ) //nolint:gosec // G117 - internal Redis storage serialization, not exposed to users
11571157 if err != nil {
11581158 return fmt .Errorf ("failed to marshal identity: %w" , err )
11591159 }
0 commit comments