소스 검색

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 {


불러오는 중...
취소
저장