Re: #320: add advice on defining auth scheme parameters

On 2011-10-29 15:54, Yutaka OIWA wrote:
> mostly +1 for requiring generic-parser-compatible syntaxes.
>
> Could you explain what
>
>       Note: the fact that "realm" only allows quoted-string syntax was a
>       bad design choice not to be repeated in new schemes.
>
> means?
> I don't think it is a bad idea, as long as ["realm=" token] pattern is
> not valid.  (because it is equivalent to use a generic parser first and
> then to require quoted-string as a value.)
> ...

What I mean is that the ABNF requires the realm value to be a token, but 
in practice all UAs accept both forms.

See test case: <http://greenbytes.de/tech/tc/httpauth/#simplebasictok>

Best regards, Julian

Received on Saturday, 29 October 2011 14:05:38 UTC