-
Notifications
You must be signed in to change notification settings - Fork 569
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for sms challenge page
- Loading branch information
Showing
3 changed files
with
765 additions
and
0 deletions.
There are no files selected for viewing
350 changes: 350 additions & 0 deletions
350
pkg/provider/googleapps/example/challenge-sms-send.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,350 @@ | ||
<!doctype html> | ||
<html lang="en" dir="ltr"> | ||
|
||
<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/ipp/2" jsname="rzWj5" jscontroller="HNBfvc" | ||
jsaction="submit:zbvklb" jsshadow> | ||
<span jsslot> | ||
<input name="challengeId" type="hidden" id="challengeId" value="2"> | ||
<input name="challengeType" type="hidden" id="challengeType" value="9"> | ||
<input name="ifkv" type="hidden" value="XXXXXXXX"> | ||
<input name="continue" type="hidden" value="XXXXXXXX"> | ||
<input name="flowName" type="hidden" value="WEB_SETUP_GLIF"> | ||
<input name="followup" type="hidden" value="XXXXXXXX"> | ||
<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="ltmpl" type="hidden" value="popup"> | ||
<input name="TL" type="hidden" value="XXXXXXXX"> | ||
<input type="hidden" name="gxf" id="gxf" value="XXXXXXXX"> | ||
<div jsname="KrwUDc"> | ||
<img jsname="TqVmm" class="JC07Dd" src="//ssl.gstatic.com/accounts/marc/idv_sms.png" alt=""> | ||
<div class="VnJmLc" jsname="NhJ5Dd"> | ||
Get a verification code by text message at: | ||
<b dir="ltr" class="DZNRQe"> | ||
(•••) •••-••XX | ||
</b> | ||
</div> | ||
<button type="submit" class="MK9CEd MVpUfe" jsname="M2UYVd" jscontroller="rrJN5c" jsaction="aJAbCd:zbvklb" | ||
name="SendMethod" value="SMS" id="idvPreresteredPhoneSms">Send text message</button> | ||
<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> | ||
</span> | ||
</form> | ||
</div> | ||
<div class=" KSYbxc "> | ||
<form method="POST" action="/signin/challenge/skip"> | ||
<input name="challengeId" type="hidden" value="2"> | ||
<input name="ifkv" type="hidden" value="XXXXXXXX"> | ||
<input name="continue" type="hidden" value="XXXXXXXX"> | ||
<input name="flowName" type="hidden" value="WEB_SETUP_GLIF"> | ||
<input name="followup" type="hidden" value="XXXXXXXX"> | ||
<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="ltmpl" type="hidden" value="popup"> | ||
<input name="TL" type="hidden" value="XXXXXXXX"> | ||
<input type="hidden" name="gxf" id="gxf" value="XXXXXXXX"> | ||
<input id="skipChallenge" type="submit" jsname="rwR6T" class="g1C42c" value="Try another way to sign in"> | ||
</form> | ||
</div> | ||
<div class="M0leCe"> | ||
<span jsname="tODuDc"> | ||
edw@defang.io | ||
</span> | ||
<a href="XXXXXXXX" class="vHOx3b"> | ||
Use a different account | ||
</a> | ||
</div> | ||
</div> | ||
<div class="zOB73"> | ||
<div class="SEK88d ZnXjYc EaNIqc"> | ||
<ul id="footer-list"> | ||
<li> | ||
</li> | ||
<li> | ||
<a href="https://accounts.google.com/TOS?loc=CA&hl=en&privacy=true" target="_blank"> | ||
Privacy | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://accounts.google.com/TOS?loc=CA&hl=en" target="_blank"> | ||
Terms | ||
</a> | ||
</li> | ||
</ul> | ||
<div id="lang-vis-control" jscontroller="nCyKU" jsaction="change:iktSbe"> | ||
<span id="lang-chooser-wrap" class="KQh9Y"> | ||
<label for="lang-chooser"> | ||
<img src="//ssl.gstatic.com/images/icons/ui/common/universal_language_settings-21.png" | ||
alt="Change language"> | ||
</label> | ||
<select id="lang-chooser" class="BTDeVb" jsname="J2uaq" name="lang-chooser"> | ||
<option value="af"> | ||
Afrikaans | ||
</option> | ||
<option value="az"> | ||
azərbaycan | ||
</option> | ||
<option value="bs"> | ||
bosanski | ||
</option> | ||
<option value="ca"> | ||
català | ||
</option> | ||
<option value="cs"> | ||
Čeština | ||
</option> | ||
<option value="da"> | ||
Dansk | ||
</option> | ||
<option value="de"> | ||
Deutsch | ||
</option> | ||
<option value="et"> | ||
eesti | ||
</option> | ||
<option value="en-GB"> | ||
English (United Kingdom) | ||
</option> | ||
<option value="en" selected="selected"> | ||
English (United States) | ||
</option> | ||
<option value="es"> | ||
Español (España) | ||
</option> | ||
<option value="es-419"> | ||
Español (Latinoamérica) | ||
</option> | ||
<option value="eu"> | ||
euskara | ||
</option> | ||
<option value="fil"> | ||
Filipino | ||
</option> | ||
<option value="fr-CA"> | ||
Français (Canada) | ||
</option> | ||
<option value="fr"> | ||
Français (France) | ||
</option> | ||
<option value="gl"> | ||
galego | ||
</option> | ||
<option value="hr"> | ||
Hrvatski | ||
</option> | ||
<option value="in"> | ||
Indonesia | ||
</option> | ||
<option value="zu"> | ||
isiZulu | ||
</option> | ||
<option value="is"> | ||
íslenska | ||
</option> | ||
<option value="it"> | ||
Italiano | ||
</option> | ||
<option value="sw"> | ||
Kiswahili | ||
</option> | ||
<option value="lv"> | ||
latviešu | ||
</option> | ||
<option value="lt"> | ||
lietuvių | ||
</option> | ||
<option value="hu"> | ||
magyar | ||
</option> | ||
<option value="ms"> | ||
Melayu | ||
</option> | ||
<option value="nl"> | ||
Nederlands | ||
</option> | ||
<option value="no"> | ||
norsk | ||
</option> | ||
<option value="pl"> | ||
polski | ||
</option> | ||
<option value="pt"> | ||
Português (Brasil) | ||
</option> | ||
<option value="pt-PT"> | ||
Português (Portugal) | ||
</option> | ||
<option value="ro"> | ||
română | ||
</option> | ||
<option value="sk"> | ||
Slovenčina | ||
</option> | ||
<option value="sl"> | ||
slovenščina | ||
</option> | ||
<option value="sr-Latn"> | ||
srpski (latinica) | ||
</option> | ||
<option value="fi"> | ||
Suomi | ||
</option> | ||
<option value="sv"> | ||
Svenska | ||
</option> | ||
<option value="vi"> | ||
Tiếng Việt | ||
</option> | ||
<option value="tr"> | ||
Türkçe | ||
</option> | ||
<option value="el"> | ||
Ελληνικά | ||
</option> | ||
<option value="bg"> | ||
български | ||
</option> | ||
<option value="mk"> | ||
македонски | ||
</option> | ||
<option value="mn"> | ||
монгол | ||
</option> | ||
<option value="ru"> | ||
Русский | ||
</option> | ||
<option value="sr"> | ||
српски (ћирилица) | ||
</option> | ||
<option value="uk"> | ||
Українська | ||
</option> | ||
<option value="ka"> | ||
ქართული | ||
</option> | ||
<option value="hy"> | ||
հայերեն | ||
</option> | ||
<option value="iw"> | ||
עברית | ||
</option> | ||
<option value="ur"> | ||
اردو | ||
</option> | ||
<option value="ar"> | ||
العربية | ||
</option> | ||
<option value="fa"> | ||
فارسی | ||
</option> | ||
<option value="am"> | ||
አማርኛ | ||
</option> | ||
<option value="ne"> | ||
नेपाली | ||
</option> | ||
<option value="mr"> | ||
मराठी | ||
</option> | ||
<option value="hi"> | ||
हिन्दी | ||
</option> | ||
<option value="bn"> | ||
বাংলা | ||
</option> | ||
<option value="pa"> | ||
ਪੰਜਾਬੀ | ||
</option> | ||
<option value="gu"> | ||
ગુજરાતી | ||
</option> | ||
<option value="ta"> | ||
தமிழ் | ||
</option> | ||
<option value="te"> | ||
తెలుగు | ||
</option> | ||
<option value="kn"> | ||
ಕನ್ನಡ | ||
</option> | ||
<option value="ml"> | ||
മലയാളം | ||
</option> | ||
<option value="si"> | ||
සිංහල | ||
</option> | ||
<option value="th"> | ||
ไทย | ||
</option> | ||
<option value="lo"> | ||
ລາວ | ||
</option> | ||
<option value="my"> | ||
မြန်မာ | ||
</option> | ||
<option value="km"> | ||
ខ្មែរ | ||
</option> | ||
<option value="ko"> | ||
한국어 | ||
</option> | ||
<option value="zh-HK"> | ||
中文(香港) | ||
</option> | ||
<option value="ja"> | ||
日本語 | ||
</option> | ||
<option value="zh-CN"> | ||
简体中文 | ||
</option> | ||
<option value="zh-TW"> | ||
繁體中文 | ||
</option> | ||
</select> | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
Oops, something went wrong.