Skip to content

Commit

Permalink
fix: add auth metric field (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca authored Aug 22, 2024
1 parent 5bf3a7c commit ace79e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- add new auth metric field

## [1.44.2] - 2024-08-21

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions node/directives/checkUserAccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export class CheckUserAccess extends SchemaDirectiveVisitor {
hasApiToken,
hasValidApiToken,
hasStoreToken,
hasCurrentValidStoreToken,
hasValidStoreToken,
hasAdminTokenOnHeader,
hasValidAdminTokenOnHeader,
Expand Down Expand Up @@ -122,6 +123,7 @@ export class CheckUserAccess extends SchemaDirectiveVisitor {
hasApiToken,
hasValidApiToken,
hasStoreToken,
hasCurrentValidStoreToken,
hasValidStoreToken,
hasAdminTokenOnHeader,
hasValidAdminTokenOnHeader,
Expand Down
1 change: 1 addition & 0 deletions node/metrics/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface AuthAuditMetric {
hasAdminToken?: boolean
hasValidAdminToken?: boolean
hasStoreToken?: boolean
hasCurrentValidStoreToken?: boolean
hasValidStoreToken?: boolean
hasApiToken?: boolean
hasValidApiToken?: boolean
Expand Down

0 comments on commit ace79e8

Please sign in to comment.