W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2011

Realm requirements (issue 177)

From: Eran Hammer-Lahav <eran@hueniverse.com>
Date: Wed, 6 Apr 2011 16:52:43 -0700
To: HTTP Working Group <ietf-http-wg@w3.org>
Message-ID: <90C41DD21FB7C64BB94121FBBC2E7234465664E126@P3PW5EX1MB01.EX1.SECURESERVER.NET>
http://trac.tools.ietf.org/wg/httpbis/trac/ticket/177

I have an issue with the prose and requirements regarding the realm parameter.

Prose:

It is not clear at all what this means: "The realm directive (case-insensitive) is required for all authentication schemes that issue a challenge." 

It sounds like not all authentication schemes issue a challenge, but does that mean they use the WWW-Authenticate for something else (like sending an error code) or any use of the WWW-Authenticate header is considered a challenge, but not all schemes use both auth headers?

Requirement:

Regardless of what the resolution of the prose is, the realm parameter should not be required for any new scheme. During work on OAuth as well as the MAC authentication scheme protocols, many people expressed objection to including the realm parameter. The main problem is that it is not applicable when using new authentication schemes that rely on a distributed issuance of credentials.

In OAuth, the realm concept is undefined, but in practice (if it is ever standardized) it is a combination of the credential issuer (an absolute HTTPS URI of the token endpoint), composite scope, and some definition of resources grouping (domain, etc.). The realm parameter cannot express this without defining an internal syntax and such a syntax in not likely to match the current rules defined in 2617 for using realm.

One of the main sources of confusion for OAuth 1.0 was what to put in the realm, and how to use it. Because OAuth has a different notion of realm, no one uses that field, just stick something random in there for no good reason.

Realm was specifically designed for use with Basic and Digest and with a browser and human present. It just doesn't scale to new schemes and there is just no justification in defining it as required.

The realm parameter should be defined as a scheme-specific parameter for Basic and Digest and removed from the general framework.

EHL
Received on Wednesday, 6 April 2011 23:53:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:51:39 GMT