Site Profile
A Site Profile is data used to associate a Website Profile with a specific domain.
Terminology
For terms not explained in this document, please see Terminology.
- Originator Profile Set (OPS)
- Core Profile (CP)
- Profile Annotation (PA)
- Web Media Profile (WMP)
- Website Profile (WSP)
- Site Profile (SP)
Site Profile
The Site Profile is the following JSON that summarizes the OPS and WSP.
originators
: REQUIRED. This is OPS.credential
: REQUIRED. This is WSP.
Below is non-normative example.
{
"originators": [
{
"core": "eyJ...",
"annotations": ["eyJ...", "eyJ..."],
"media": "eyJ..."
},
{
"core": "eyJ...",
"annotations": ["eyJ..."],
"media": "eyJ..."
}
],
"credential": "eyJ..."
}
Method
Make sure that the site profile is available when the client accesses /.well-known/sp.json
on the origin.
Request
To get the WSP for a domain, send an HTTP GET request to /.well-known/sp.json
for that domain.
The following example is a request to get the Site Profile for example.com:
GET /.well-known/sp.json HTTP/1.1
Host: example.com
The following example shows the response:
HTTP/1.1 200 OK
Content-Type: application/json
...: ...
...
Implementers must take into consideration privacy considerations when implementing the Accept-Language
request header, taking into account that it may reveal information that the user considers to be private (such as the user's ethnicity). Specifically, implementers should not include Accept-Language
in the scope of logs collected, should specify the period for which logs are to be retained, and should clearly state how Accept-Language
will be handled in a privacy policy.
Response
If a Site Profile is returned in response to a GET request to the Site Profile's well-known path, the status code MUST be 200 and the body MUST be the Site Profile.
If the request includes an Accept-Language
header, the server MUST select the language for the WSP and OPS according to RFC 4647 Section 3.
Verification Process
This section is non-normative
The verification process implemented in @originator-profile/verify follows this process:
Please see the following reference for the data structure handled in the verification process.
- SiteProfileInvalid
- SiteProfileVerifyFailed
- Verified SP
Details of OPS verification process are as follows: OPS verification, and details of WSP verification process are as follows: WSP verification.