Skip to content

Update GenerateTokenContext to expose SecurityTokenDescriptor and adopt the new URI-style token type identifiers in the client, core, server and validation stacks#2297

Merged
kevinchalet merged 1 commit intoopeniddict:devfrom
kevinchalet:token_type_identifiers
Apr 16, 2025
Merged

Conversation

@kevinchalet
Copy link
Member

This PR:

  • Updates the GenerateTokenContext class to allow tweaking the SecurityTokenDescriptor instance before IdentityModel is invoked to create the token, which can be used to override the creation/expiration dates or the token type.
  • Updates a few handlers to not throw when a token type isn't recognized (instead, no mapping is done and the value is flowed as-is). It's something that needed to be changed for OAuth 2.0 token exchange to work with tokens that are not issued by the OpenIddict server itself.
  • Implements the strategy described in that thread: Adopt the new URI-style token type identifiers in the client, core, server and validation stacks #2296.

…pt the new URI-style token type identifiers in the client, core, server and validation stacks
@kevinchalet kevinchalet added this to the 7.0.0-preview3 milestone Apr 16, 2025
@kevinchalet kevinchalet self-assigned this Apr 16, 2025
@kevinchalet kevinchalet merged commit fab284f into openiddict:dev Apr 16, 2025
6 checks passed
@kevinchalet kevinchalet deleted the token_type_identifiers branch April 16, 2025 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant