Skip to content

Conversation

@pgermishuys
Copy link
Contributor

@pgermishuys pgermishuys commented Jan 19, 2026

Fixes #312.

Something to note here and that is if the user adds any of the typed properties in here such as "Scope", "Resource", etc and sets the typed properties, they'll receive an InvalidOperationException with "Duplicate parameter: scope" for example.

We could strip off the typed properties before we set them, but this might unnecessarily complicated the code for no real benefit.

@pgermishuys pgermishuys added this to the atm-4.1.1 milestone Jan 19, 2026
@pgermishuys pgermishuys self-assigned this Jan 19, 2026
@pgermishuys pgermishuys added the area/foss/access-token-management Issues related to Access Token Management label Jan 19, 2026
@pgermishuys pgermishuys changed the title Pg/token management Set parameters in RevokeTokenRequest and RefreshTokenRequest Jan 19, 2026
@pgermishuys pgermishuys marked this pull request as ready for review January 20, 2026 07:09
Copilot AI review requested due to automatic review settings January 20, 2026 07:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #312 by enabling additional custom parameters to be passed through refresh token and revoke token requests. The changes ensure that when users provide custom parameters via UserTokenRequestParameters, those parameters are properly included in the underlying token and revocation requests.

Changes:

  • Added support for passing custom parameters in RefreshTokenRequest and RevokeTokenRequest
  • Added comprehensive test coverage for both refresh and revoke token scenarios with additional parameters

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
UserTokenManagementTests.cs Added two new test cases verifying that custom parameters are correctly passed through refresh token and revoke token requests
OpenIdConnectUserTokenEndpoint.cs Modified RefreshAccessTokenAsync and RevokeRefreshTokenAsync methods to include custom parameters from UserTokenRequestParameters

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pgermishuys pgermishuys merged commit 24d2d8e into main Jan 20, 2026
3 checks passed
@pgermishuys pgermishuys deleted the pg/token-management branch January 20, 2026 07:42
pgermishuys added a commit that referenced this pull request Jan 23, 2026
Set parameters in RevokeTokenRequest and RefreshTokenRequest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/foss/access-token-management Issues related to Access Token Management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional parameters are not sent in the request when refreshing or revoking a token

3 participants