Clarification requested: optional parameter

View: New views
2 Messages — Rating Filter:   Alert me  

Clarification requested: optional parameter

by Jean-Noël Colin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I would like to clarify something about optional parameters: does an optional parameter have to appear, but without value, or does it have to be skipped completely, or are both options valid? 

For instance, in authentication request, if I don't want to specify a claimed_id, do I simply not include the parameter in the list, or do I include it without value?

openid.mode=checkid_immediate
openid.claimed_id=
openid.assoc_handle=thisisahandle

vs

openid.ns=http://specs.openid.net/auth/2.0
openid.mode=checkid_immediate
openid.assoc_handle=thisisahandle

Best regards

Jean-Noël Colin

_______________________________________________
specs mailing list
specs@...
http://openid.net/mailman/listinfo/specs

Re: Clarification requested: optional parameter

by Andrew Arnott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Optional parameters should be absent rather than empty, unless the parameter specifically indicates that an empty value is permissible.

My interpretation, and from what I've seen what people do.
--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


On Mon, Jun 29, 2009 at 7:52 AM, Jean-Noël Colin <jnc@...> wrote:
Hello,

I would like to clarify something about optional parameters: does an optional parameter have to appear, but without value, or does it have to be skipped completely, or are both options valid? 

For instance, in authentication request, if I don't want to specify a claimed_id, do I simply not include the parameter in the list, or do I include it without value?

openid.mode=checkid_immediate
openid.claimed_id=
openid.assoc_handle=thisisahandle

vs

openid.ns=http://specs.openid.net/auth/2.0
openid.mode=checkid_immediate
openid.assoc_handle=thisisahandle

Best regards

Jean-Noël Colin

_______________________________________________
specs mailing list
specs@...
http://openid.net/mailman/listinfo/specs



_______________________________________________
specs mailing list
specs@...
http://openid.net/mailman/listinfo/specs