瀏覽代碼

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 年之前
父節點
當前提交
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 {


Loading…
取消
儲存