<div dir="ltr"><div>Hi Vladimir,</div><div><br></div><div>see below</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(235,237,230);background-color:rgb(32,35,44)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">curl -sX POST <a href="https://op.panva.cz/reg">https://op.panva.cz/reg</a> -H 'content-type: application/json' -d '{"redirect_uris":["<a href="https://rp.example.com">https://rp.example.com</a>"], "grant_types":null}' | jq</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(235,237,230);background-color:rgb(32,35,44)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(246,246,246);background-color:rgb(32,35,44)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>{</b></span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(86,255,132);background-color:rgb(32,35,44)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(246,246,246)"><b><span class="gmail-Apple-converted-space"> </span></b></span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(96,216,255)"><b>"error"</b></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(246,246,246)"><b>: </b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">"invalid_client_metadata"</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(246,246,246)"><b>,</b></span></p>
<p class="gmail-p3" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(86,255,132);background-color:rgb(32,35,44)"><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(246,246,246)"><b><span class="gmail-Apple-converted-space"> </span></b></span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(96,216,255)"><b>"error_description"</b></span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(246,246,246)"><b>: </b></span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">"grant_types must be an array"</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-variant-alternates:normal;font-kerning:auto;font-feature-settings:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(246,246,246);background-color:rgb(32,35,44)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><b>}</b></span></p></div><div><br></div><div>During DCR Management Update however, null, or property omission, is considered a signal to remove, or set a default value to a property.</div><div><br></div><div>IIRC my initial implementation had null treated as "not provided" for DCR create as well, for some reasons which I cannot recall (but git blame & commit history could probably reveal that) this was changed.</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">S pozdravem,<br><b>Filip Skokan</b></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 22 Sept 2023 at 20:41, Vladimir Dzhuvinov via Openid-specs-ab <<a href="mailto:openid-specs-ab@lists.openid.net">openid-specs-ab@lists.openid.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>This is a question to implementers of OIDC Dynamic Client
Registration:</p>
<p>Does your implementation return an "invalid_client_metadata"
error when parsing a metadata parameter with a null value, or does
it treat that as if the metadata parameter is absent from the
request?</p>
<p>For example:</p>
<pre>POST /clients HTTP/1.1
Content-Type: application/json
{
"redirect_uris":
[<a href="https://client.example.org/callback" target="_blank">"https://client.example.org/callback"</a>],
"grant_types": null <--- metadata parameter with null value
}</pre>
<p></p>
<p><br>
</p>
<p>Thanks,</p>
<p>Vladimir<br>
</p>
<pre cols="72">--
Vladimir Dzhuvinov</pre>
</div>
_______________________________________________<br>
Openid-specs-ab mailing list<br>
<a href="mailto:Openid-specs-ab@lists.openid.net" target="_blank">Openid-specs-ab@lists.openid.net</a><br>
<a href="https://lists.openid.net/mailman/listinfo/openid-specs-ab" rel="noreferrer" target="_blank">https://lists.openid.net/mailman/listinfo/openid-specs-ab</a><br>
</blockquote></div>