Consider allowing users to customize the BuildRedirectUri of AuthorizeHttpWriter #181
Replies: 1 comment 3 replies
-
|
Thank you for your suggestion. While we added some flexibility in DuendeSoftware/products#1446, we opted to only open up for extensions once we had actual requests for it. Opening up our internal implementations for extension/reuse by making them public and having protected virtual methods adds them to our API surface that must be kept stable. So before we open up anything, we need to be careful to ensure that the solution we create will be maintainable over time. If I understand your current solution right, you are using the ACR values as a property back just because it's something available. Do you prefer to have these custom values as ACR values, or would you prefer another field/property bag to be available to transfer data to the custom I will discuss this request back with our product development team to get their opinion on possibilities. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I like your new extensibility points for the IHttpResponseWriter, I'm looking at overriding the AuthorizeHttpWriter, like the person in this issue:
DuendeSoftware/products#1446
Can you consider changing BuildRedirectUri to be a virtual method? I'd like to send some custom query parameters to the client that happen after some business logic within our IdentityServer. I add them in a step before the login page using an override of
AuthorizeInteractionResponseGeneratorto add them to the ACR values of the login request, which is then persisted over to the connect/authorize/callback request.However, when the 302 happens, these values are not persisted in the redirect.
This would be the same case if we were to send these from the client.
Or, if there's some other way of sending back custom values to the client when the
authorize/endpointrequest is completed but before the/tokenrequest, please let me know. I had considered modifying the redirectURI on the fly but this just breaks the client and would require further overrides.Even if it's just a method of appending ACR values to the location value, that would be sufficient, thanks!
Beta Was this translation helpful? Give feedback.
All reactions