Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Custom response parameters for custom grants #3137 #3139

Closed
wants to merge 5 commits into from
Closed

Custom response parameters for custom grants #3137 #3139

wants to merge 5 commits into from

Conversation

szymongaertig
Copy link
Contributor

implementation of custom response parameters for custom grants

@dnfclas
Copy link

dnfclas commented Aug 15, 2016

Hi @garfieldos, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@leastprivilege leastprivilege self-assigned this Aug 15, 2016
@leastprivilege leastprivilege added this to the 2.6 milestone Aug 15, 2016
@leastprivilege
Copy link
Member

Can you sign the CLA?

@dnfclas
Copy link

dnfclas commented Aug 16, 2016

@garfieldos, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@szymongaertig
Copy link
Contributor Author

Done :)

@@ -56,9 +82,26 @@ private HttpResponseMessage Execute()
error_description = ErrorDescription
};

var jobject = JObject.FromObject(dto, Serializer);
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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).

Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right.
Fixed in 437cebf

@szymongaertig
Copy link
Contributor Author

I will close this PR because of new #3191

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants