-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #777 from nickvollmar/google-prompt-extra-number
feat(googleapps): add support for 'extra number' in device push challenges
- Loading branch information
Showing
3 changed files
with
128 additions
and
1 deletion.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
pkg/provider/googleapps/example/challenge-extra-number.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<!doctype html> | ||
<html lang="en" dir="ltr"> | ||
|
||
<head> | ||
<base href="https://accounts.google.com/"> | ||
<title>Google Accounts</title> | ||
</head> | ||
|
||
<body id="yDmH0d"> | ||
<div class="s2h6df"> | ||
<div class="JYXKFb IA6off"> | ||
<div class="ql1pVb ZnXjYc EaNIqc"> | ||
<div class="omTHz" aria-label="Google"></div> | ||
</div> | ||
</div> | ||
<div class="RgEUV ZnXjYc EaNIqc JhUD8d"> | ||
<div> | ||
<div class="glT6eb"> | ||
<div jsname="IDL96d"><h1>2-Step Verification</h1></div> | ||
<div jsname="jqgtP"><h2>This extra step shows it’s really you trying to sign in</h2></div> | ||
</div> | ||
</div> | ||
<div class="LJtPoc" jsname="Ki8mld"> | ||
<form method="POST" id="challenge" action="/signin/challenge/dp/6" jsname="rzWj5" | ||
jscontroller="HNBfvc" jsaction="submit:zbvklb" jsshadow=""><span jsslot=""><input | ||
name="challengeId" type="hidden" id="challengeId" value="6"/><input name="challengeType" | ||
type="hidden" | ||
id="challengeType" | ||
value="39"/><input | ||
name="checkConnection" type="hidden" value="youtube:930:1"/><input name="continue" | ||
type="hidden" | ||
value="https://accounts.google.com/o/saml2/initsso?idpid=XXXXXX&spid=YYYYYY&forceauthn=false&from_login=1&as=123123-w"/><input | ||
name="flowName" type="hidden" value="WEB_SETUP_GLIF"/><input name="faa" type="hidden" | ||
value="1"/><input name="hl" | ||
type="hidden" | ||
value="en"/><input | ||
name="oauth" type="hidden" value="1"/><input name="sarp" type="hidden" value="1"/><input | ||
name="scc" type="hidden" value="1"/><input name="TL" type="hidden" | ||
value="XXXXXX"/><input | ||
type="hidden" name="gxf" id="gxf" | ||
value="XXXXXX:1529303586210"/><div jsname="KrwUDc"><div | ||
jsname="wsPcPe"><img jsname="TqVmm" class="JC07Dd" | ||
src="//ssl.gstatic.com/accounts/marc/open_notification_android.gif" | ||
alt=""/><div class="EGmPD" jsname="BCqkPb">Open the Gmail app on Nicholas’s iPhone</div><div | ||
class="VnJmLc" jsname="NhJ5Dd">Google sent a notification to your Nicholas’s iPhone. Open the Gmail app, tap <strong>Yes</strong> on the prompt, then tap <strong>89</strong> on your phone to verify it’s you.<div | ||
class="PrDSKc"></div><div jsname="feLNVc" class="NOZDsb">89</div></div><p>After you’ve finished on your phone, press the button below.</p><button | ||
type="submit" class="MK9CEd MVpUfe" jsname="M2UYVd" jscontroller="rrJN5c" | ||
jsaction="aJAbCd:zbvklb" formnovalidate="" value="submit" id="submit">I have responded from my phone</button><div | ||
style="display: none;"><a href="null" target="_blank">null</a></div><div | ||
class="ARshqb"><input type="checkbox" name="TrustDevice" id="trustDevice" class="aCOJmf" | ||
checked=""/><span>Don’t ask again on this device</span><div | ||
class="Bfmfyc" role="tooltip"><div class="x7qQqf"></div><div class="hzC8Lb">For your convenience, keep this checked. On shared devices, additional precautions are recommended. <a | ||
href="https://support.google.com/accounts/?p=securesignin&hl=en" target="_blank">Learn more</a></div></div></div></div></div></span> | ||
</form> | ||
</div> | ||
<div class=" KSYbxc "> | ||
<form method="POST" action="/signin/challenge/skip"><input name="challengeId" type="hidden" | ||
value="6"/><input | ||
name="checkConnection" type="hidden" value="youtube:930:1"/><input name="continue" | ||
type="hidden" | ||
value="https://accounts.google.com/o/saml2/initsso?idpid=XXXXXX&spid=YYYYYY&forceauthn=false&hl=en&loc=US&from_login=1&as=123123-w"/><input | ||
name="flowName" type="hidden" value="WEB_SETUP_GLIF"/><input name="faa" type="hidden" | ||
value="1"/><input name="hl" | ||
type="hidden" | ||
value="en"/><input | ||
name="oauth" type="hidden" value="1"/><input name="sarp" type="hidden" value="1"/><input | ||
name="scc" type="hidden" value="1"/><input name="TL" type="hidden" | ||
value="XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX"/><input | ||
type="hidden" name="gxf" id="gxf" | ||
value="XXXXXX:1529303586210"/><input id="skipChallenge" | ||
type="submit" | ||
jsname="rwR6T" | ||
class="g1C42c" | ||
value="Try another way to sign in"/> | ||
</form> | ||
</div> | ||
<div class="M0leCe"><span jsname="tODuDc">[email protected]</span><a | ||
href="https://accounts.google.com/AccountChooser?continue=https%3A%2F%2Faccounts.google.com%2Fo%2Fsaml2%2Finitsso%3Fidpid%3DXXXXXX%26spid%3DYYYYYY%26forceauthn%3Dfalse%26hl%3Den%26loc%3DUS%26from_login%3D1%26as%3D123123-w&hl=en&oauth=1&sarp=1&faa=1" | ||
class="vHOx3b">Use a different account</a></div> | ||
</div> | ||
<div class="zOB73"> | ||
<div class="SEK88d ZnXjYc EaNIqc"> | ||
<ul id="footer-list"> | ||
<li>Google</li> | ||
<li><a href="https://accounts.google.com/TOS?loc=US&hl=en&privacy=true" | ||
target="_blank">Privacy</a></li> | ||
<li><a href="https://accounts.google.com/TOS?loc=US&hl=en" target="_blank">Terms</a> | ||
</li> | ||
</ul> | ||
<div id="lang-vis-control" jscontroller="nCyKU" jsaction="change:iktSbe"></div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="lDwpOe"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters