Bladeren bron

On complete, ignore fragments that don't contain useful information

Auth providers like Facebook and Google tend to add garbage fragments
onto OAuth 2.0 redirect URIs to stop malicious fragments being
maintained through the flow. This change ensures that those fragments
aren't mistakenly used to attempt to complete login.

If the fragment contains a code, token or error, it is assumed to be the
correct place to find data provided by the auth provider.
bubble
Joe Littlejohn 7 jaren geleden
bovenliggende
commit
90f641059f
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      src/main/html/o2c.html

+ 1
- 1
src/main/html/o2c.html Bestand weergeven

@@ -1,6 +1,6 @@
<script>
var qp = null;
if(window.location.hash && window.location.hash !== "#_=_") {
if(/code|token|error/.test(window.location.hash)) {
qp = location.hash.substring(1);
}
else {


Laden…
Annuleren
Opslaan