Просмотр исходного кода

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 лет назад
Родитель
Сommit
90f641059f
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      src/main/html/o2c.html

+ 1
- 1
src/main/html/o2c.html Просмотреть файл

@@ -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 {


Загрузка…
Отмена
Сохранить