Skip to content

Commit

Permalink
Remove requirement for same domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegnat committed Aug 22, 2020
1 parent 82f7b8d commit 0fec2b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions public/source/index.php
Expand Up @@ -518,7 +518,7 @@
"me": "https://user.example.net/"
}') ?></pre>

<p>The resulting profile URL MAY be different from what the user initially entered, but MUST be on the same domain. This gives the authorization endpoint an opportunity to canonicalize the user's URL, such as correcting <code>http</code> to <code>https</code>, or adding a path if required. See <a href="#redirect-examples">Redirect Examples</a> for an example of how a service can allow a user to enter a URL on a domain different from their resulting <code>me</code> profile URL.</p>
<p>The resulting profile URL MAY be different from what the user initially entered. This gives the authorization endpoint an opportunity to canonicalize the user's URL, such as correcting <code>http</code> to <code>https</code>, or adding a path if required. See <a href="#differing-user-profile-urls">Differing User Profile URLs</a> on how to verify that the provided <code>me</code> profile URL can be trusted.</p>

<p>See OAuth 2.0 [[!RFC6749]] <a href="https://tools.ietf.org/html/rfc6749#section-5.2">Section 5.2</a> for how to respond in the case of errors or other failures.</p>
</section>
Expand All @@ -542,7 +542,7 @@
"me": "https://user.example.net/"
}</pre>

<p>The resulting profile URL MAY be different from what the user initially entered, but MUST be on the same domain. This provides the opportunity to canonicalize the user's URL, such as correcting <code>http</code> to <code>https</code>, or adding a path if required. See <a href="#redirect-examples">Redirect Examples</a> for an example of how a service can allow a user to enter a URL on a domain different from their resulting <code>me</code> profile URL.</p>
<p>The resulting profile URL MAY be different from what the user initially entered. This provides the opportunity to canonicalize the user's URL, such as correcting <code>http</code> to <code>https</code>, or adding a path if required. See <a href="#differing-user-profile-urls">Differing User Profile URLs</a> on how to verify that the provided <code>me</code> profile URL can be trusted.</p>

<p>See OAuth 2.0 [[!RFC6749]] <a href="https://tools.ietf.org/html/rfc6749#section-5.2">Section 5.2</a> for how to respond in the case of errors or other failures.</p>
</section>
Expand Down Expand Up @@ -636,7 +636,6 @@

<ol>
<li>It MUST follow any permanent redirections from this URL to discover the canonical profile URL, in the same manner as <a href="#discovery-by-clients">initial profile URL discovery</a>.</li>
<li>It MUST verify that the canonical profile URL is on the same domain as the initially-entered profile URL.</li>
<li>It MUST verify that the canonical profile URL declares the same <code>authorization_endpoint</code> as the initially-entered profile URL.</li>
</ol>

Expand Down

0 comments on commit 0fec2b4

Please sign in to comment.