rfc-5397

WebDAV Current Principal Extension

W. Sanchez, C. Daboo
date2008-12 streamIETF wgnon working group statusPROPOSED STANDARD pages5 canonicalhttps://www.rfc-editor.org/rfc/rfc5397 doi10.17487/RFC5397
This specification defines a new WebDAV property that allows clients to quickly determine the principal corresponding to the current authenticated user. [STANDARDS-TRACK]

Extracted elements (10)

design-rationale §1

The existing DAV:principal-match REPORT produces ambiguous results because it returns both the individual user principal and every group principal the user belongs to, with no clear way to distinguish them. DAV:current-user-principal was introduced to unambiguously identify the principal resource for the current user.

http

design-rationale §1

The specification intentionally restricts DAV:current-user-principal to a single http(s) URL rather than providing a complete list of alternate URLs. The purpose is only to provide a bootstrap entry point; clients can then query that principal resource to discover additional URLs.

http

interoperability-note §1

The DAV:current-user-principal property extends WebDAV ACL [RFC3744] and depends on the principal model defined there; clients must support WebDAV ACL to make meaningful use of the returned principal resource URL.

http

normative-requirement §2 MUST

Processing of XML by clients and servers MUST follow the rules defined in Section 17 of WebDAV [RFC4918].

http

normative-requirement §3 SHOULD

Servers SHOULD be consistent and use the same principal resource URI for each authenticated principal, even though the server is free to choose any one when multiple principal resources correspond to the same authenticated principal.

http

normative-requirement §3 MUST

The URL in DAV:current-user-principal MUST be one of the URLs in the DAV:principal-URL or DAV:alternate-URI-set properties defined on the principal resource, and MUST be an http(s) scheme URL.

http

normative-requirement §3 MUST

When authentication has not been done or has failed, the DAV:current-user-principal property MUST contain the DAV:unauthenticated pseudo-principal.

http, security

protocol-element §3

DAV:current-user-principal is a new WebDAV property that returns a URL to the principal resource corresponding to the currently authenticated user. Its value is either a DAV:href element containing an http(s) URL or a DAV:unauthenticated element when the user is not authenticated. The property is protected and computed on a per-request basis, so it is never copied or moved.

http

security-consideration §4

This specification does not introduce any additional security issues beyond those already defined for HTTP [RFC2616], WebDAV [RFC4918], and WebDAV ACL [RFC3744].

security, http

wire-format §3

The DAV:current-user-principal element is defined as `<!ELEMENT current-user-principal (unauthenticated | href)>`, containing either a DAV:unauthenticated element or a DAV:href element whose value is a URL to a principal resource.

http