-
-
Notifications
You must be signed in to change notification settings - Fork 763
Custom response parameters for custom grants #3137 #3139
Conversation
Hi @garfieldos, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! TTYL, DNFBOT; |
Can you sign the CLA? |
@garfieldos, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
Done :) |
@@ -56,9 +82,26 @@ private HttpResponseMessage Execute() | |||
error_description = ErrorDescription | |||
}; | |||
|
|||
var jobject = JObject.FromObject(dto, Serializer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/IdentityServer/IdentityServer4/blob/dev/src/IdentityServer4/Infrastructure/ObjectSerializer.cs#L24
Why I should use this class?
In this implementation ToString method returns JsonConvert.SerializeObject(o, settings); instead of JsonSerializer.Serialize (this same sytuation in method ToObject).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because you want to ignore null values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right.
Fixed in 437cebf
I will close this PR because of new #3191 |
implementation of custom response parameters for custom grants