Skip to content

Add resource, audience, nonce, and max_age to AuthenticationContext#7

Open
AlexNachbaur wants to merge 2 commits into
mainfrom
feature/authentication-context-properties
Open

Add resource, audience, nonce, and max_age to AuthenticationContext#7
AlexNachbaur wants to merge 2 commits into
mainfrom
feature/authentication-context-properties

Conversation

@AlexNachbaur
Copy link
Copy Markdown
Contributor

  • Add nonce, max_age, audience, and resource properties to the AuthenticationContext protocol and StandardAuthenticationContext
  • AuthorizationCodeContext gains audience (str) and resource (str | Sequence[str]) fields contributed to the token request (RFC 8707)
  • TokenExchangeContext gains nonce, max_age, audience, and resource
  • Deprecate IDTokenValidatorContext; AuthenticationContext subsumes its role for ID token validation
  • All flows pass context directly instead of NullIDTokenValidatorContext
  • JWTValidationContext.from_contexts accepts AuthenticationContext
  • Update README with Using Authentication Flows section and Authentication Context subsection
  • Update CHANGELOG
  • Add tests for resource/audience in authorization code flow
  • Add uv.lock to .gitignore

- Add nonce, max_age, audience, and resource properties to the
  AuthenticationContext protocol and StandardAuthenticationContext
- AuthorizationCodeContext gains audience (str) and resource
  (str | Sequence[str]) fields contributed to the token request (RFC 8707)
- TokenExchangeContext gains nonce, max_age, audience, and resource
- Deprecate IDTokenValidatorContext; AuthenticationContext subsumes
  its role for ID token validation
- All flows pass context directly instead of NullIDTokenValidatorContext
- JWTValidationContext.from_contexts accepts AuthenticationContext
- Update README with Using Authentication Flows section and
  Authentication Context subsection
- Update CHANGELOG
- Add tests for resource/audience in authorization code flow
- Add uv.lock to .gitignore
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