Skip to content

fix(oauth): validate claims and isolate token cache entries - #81

Open
lukegranto23 wants to merge 6 commits into
free5gc:mainfrom
lukegranto23:fix/oauth-claim-and-cache-hardening
Open

fix(oauth): validate claims and isolate token cache entries#81
lukegranto23 wants to merge 6 commits into
free5gc:mainfrom
lukegranto23:fix/oauth-claim-and-cache-hardening

Conversation

@lukegranto23

Copy link
Copy Markdown

Summary

  • validate OAuth access-token standard claims through jwt.RegisteredClaims so expiry and other registered claims are enforced
  • require exactly two Authorization header fields and a case-insensitive Bearer scheme
  • isolate cached access tokens by NF identity, target NF, NRF URI, and scope instead of scope alone
  • add regression tests for expired tokens and non-Bearer schemes

Validation

  • go test ./oauth

This follows up on the OAuth implementation issue discussed with the maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant