Unable to load oath uri for onedrive in cefsharp webbrowser

58 views
Skip to first unread message

Amrut S.A

unread,
Dec 16, 2016, 1:29:57 AM12/16/16
to CefSharp
Hi,
I am unable to load onedrive oauth uri using cefsharp webbrowser control in Winforms C# application.
Whenever I render the following page a blank page is displayed.


When i right click and Vie source the following text is found.



<!DOCTYPE html><!-- ServerInfo: BAYIDSLGN3A080 2016.12.10.20.21.57 Live1 Unknown LocVer:0 --><!-- PreprocessInfo: BTSA007:RR1BLDF116,  - Version: 16,0,26884,0 --><!-- RequestLCID: 1033, Market:EN-US, PrefCountry: US, LangLCID: 1033, LangISO: EN --><html dir="ltr" lang="EN-US"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><base href="https://login.live.com/pp1600/"><script type="text/javascript"></script><noscript>&lt;meta http-equiv="Refresh" content="0; URL=https://login.live.com/jsDisabled.srf?mkt=EN-US&amp;lc=1033"/&gt;Microsoft account requires JavaScript to sign in. This web browser either does not support JavaScript, or scripts are being blocked.&lt;br /&gt;&lt;br /&gt;To find out whether your browser supports JavaScript, or to allow scripts, see the browser's online help.</noscript><title>Sign in to your Microsoft account</title><meta name="PageID" content="i5011"><meta name="SiteID" content="279469"><meta name="ReqLC" content="1033"><meta name="LocLC" content="1033"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"><link rel="stylesheet" title="Default" type="text/css" href="https://auth.gfx.ms/16.000.26884.00/Default1033.css"><style type="text/css">body.cb input.hip
    {
        border-width: 2px !important;
    }
</style><style type="text/css">body{display:none;}</style><script type="text/javascript">if (top != self){try{top.location.replace(self.location.href);}catch (e){}}else{document.write(unescape('%3C%73') + 'tyle type="text/css">body{display:block !important;}</style>');}</script><style type="text/css">body{display:block !important;}</style><noscript>&lt;style type="text/css"&gt;body{display:block !important;}&lt;/style&gt;</noscript><script type="text/javascript">var g_iSRSFailed=0,g_sSRSSuccess="";function SRSRetry(c,f,e,b){var m=1,l=unescape('%3Cscript type="text/javascript" src="'),k=unescape('"%3E%3C/script%3E'),h=f,i=window,d=i.navigator;if(d&&d.userAgent&&b&&b!=f){var g=d.userAgent.toLowerCase(),n=g.indexOf("edge")>=0;if(!n){var a=g.match(/chrome\/([0-9]+)\./),j=a&&a.length==2&&!isNaN(a[1])&&parseInt(a[1])>54;if(j)h=b}}if(g_sSRSSuccess.indexOf(c)!=-1)return;if(typeof i[c]=="undefined"){g_iSRSFailed=1;e<=m&&document.write(l+h+k)}else g_sSRSSuccess+=c+"|"+e+","}
  var g_dtFirstByte=new Date();var g_objPageMode = null;</script><script type="text/javascript">var ServerData = {aU:'',Be:false,urlSwitch:'',k:1,Bf:true,fHasBackgroundColor:false,oClientAppProperties:{DisplayName:'ScanEditor'},Bh:false,Bi:false,o:true,Bj:true,AX:'https://auth.gfx.ms/16.000.26884.00/',Bl:false,Bm:0,s:1,t:'PassportRN',Bo:10000,Bq:'PPFT',A:true,B:true,Br:'',w:true,urlPost:'https://login.live.com/ppsecure/post.srf?scope=onedrive.readwrite%20wl.basic%20wl.skydrive_update&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf&client_id=9a1b4fdc-e764-40c0-b214-fe2f00dcba84&contextid=53FC224CABC54483&bk=1481869586&uaid=2a160c6da47144d7b33c8f7fd09c2ad2&pid=15216',C:true,html:[],Bt:"Sign in",D:'https://signup.live.com/signup?response_type=code&client_id=9a1b4fdc-e764-40c0-b214-fe2f00dcba84&contextid=53FC224CABC54483&bk=1481869586&ru=https://login.live.com/oauth20_authorize.srf%3fscope%3donedrive.readwrite%2520wl.basic%2520wl.skydrive_update%26response_type%3dcode%26redirect_uri%3dhttps://login.live.com/oauth20_desktop.srf%26client_id%3d9a1b4fdc-e764-40c0-b214-fe2f00dcba84%26contextid%3d53FC224CABC54483%26mkt%3dEN-US%26lc%3d1033%26bk%3d1481869586&uiflavor=host&uaid=2a160c6da47144d7b33c8f7fd09c2ad2&mkt=EN-US&lc=1033',Aa:'',str:[],z:'',sErrTxt:'',Ac:'https://login.live.com/GetSessionState.srf?scope=onedrive.readwrite%20wl.basic%20wl.skydrive_update&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf&client_id=9a1b4fdc-e764-40c0-b214-fe2f00dcba84&vv=1600&mkt=EN-US&lc=1033',Bw:'https://account.live.com/Agreement/TOU?wreply=https://login.live.com/oauth20_authorize.srf%3fscope%3donedrive.readwrite%2520wl.basic%2520wl.skydrive_update%26response_type%3dcode%26redirect_uri%3dhttps://login.live.com/oauth20_desktop.srf%26client_id%3d9a1b4fdc-e764-40c0-b214-fe2f00dcba84%26contextid%3d53FC224CABC54483%26bk%3d1481869586%26mkt%3dEN-US%26lc%3d1033&uiflavor=host&client_id=1E0000401B6B03&mkt=EN-US&lc=1033&uaid=2a160c6da47144d7b33c8f7fd09c2ad2',a2:'2a160c6da47144d7b33c8f7fd09c2ad2',G:39,BC:false,a3:'https://account.live.com/query.aspx?uaid=2a160c6da47144d7b33c8f7fd09c2ad2&mkt=EN-US&lc=1033&id=279469',BD:false,oPost:{},BE:false,L:'scope=onedrive.readwrite%20wl.basic%20wl.skydrive_update&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf&client_id=9a1b4fdc-e764-40c0-b214-fe2f00dcba84&contextid=53FC224CABC54483&bk=1481869586',Ah:true,a9:'',N:'https://login.live.com/cookiesDisabled.srf?mkt=EN-US&lc=1033',BI:true,O:false,A6:true,BL:false,S:5,BN:0,T:60,BO:0,urlHostedImpressumLink:'',BQ:'',BS:"You can use a Microsoft account to access services like <b>Hotmail</b>, <b>Xbox Live</b>, and <b>Windows Phone</b>. If you have a Windows Live ID, you already have a Microsoft account. To learn more, visit https://go.microsoft.com/fwlink/?LinkID=254486.",aC:"&copy;2016 Microsoft",BV:'https://login.live.com/GetCredentialType.srf?scope=onedrive.readwrite%20wl.basic%20wl.skydrive_update&response_type=code&redirect_uri=https://login.live.com/oauth20_desktop.srf&client_id=9a1b4fdc-e764-40c0-b214-fe2f00dcba84&vv=1600&mkt=EN-US&lc=1033',AB:'AF~Afghanistan~93!!!AL~Albania~355!!!DZ~Algeria~213!!!AD~Andorra~376!!!AO~Angola~244!!!AQ~Antarctica~672!!!AG~Antigua and Barbuda~1!!!AR~Argentina~54!!!AM~Armenia~374!!!AW~Aruba~297!!!AC~Ascension Island~247!!!AU~Australia~61!!!AT~Austria~43!!!AZ~Azerbaijan~994!!!BS~Bahamas~1!!!BH~Bahrain~973!!!BD~Bangladesh~880!!!BB~Barbados~1!!!BY~Belarus~375!!!BE~Belgium~32!!!BZ~Belize~501!!!BJ~Benin~229!!!BM~Bermuda~1!!!BT~Bhutan~975!!!BO~Bolivia~591!!!BA~Bosnia and Herzegovina~387!!!BW~Botswana~267!!!BV~Bouvet Island~47!!!BR~Brazil~55!!!IO~British Indian Ocean Territory~44!!!BN~Brunei~673!!!BG~Bulgaria~359!!!BF~Burkina Faso~226!!!BI~Burundi~257!!!CV~Cabo Verde~238!!!KH~Cambodia~855!!!CM~Cameroon~237!!!CA~Canada~1!!!KY~Cayman Islands~1!!!CF~Central African Republic~236!!!TD~Chad~235!!!CL~Chile~56!!!CN~China~86!!!CX~Christmas Island~61!!!CC~Cocos (Keeling) Islands~61!!!CO~Colombia~57!!!KM~Comoros~269!!!CG~Congo~242!!!CD~Congo (DRC)~243!!!CK~Cook Islands~682!!!CR~Costa Rica~506!!!HR~Croatia~385!!!CU~Cuba~53!!!CY~Cyprus~357!!!CZ~Czech Republic~420!!!DK~Denmark~45!!!DJ~Djibouti~253!!!DM~Dominica~1!!!DO~Dominican Republic~1!!!EC~Ecuador~593!!!EG~Egypt~20!!!SV~El Salvador~503!!!GQ~Equatorial Guinea~240!!!ER~Eritrea~291!!!EE~Estonia~372!!!ET~Ethiopia~251!!!FK~Falkland Islands~500!!!FO~Faroe Islands~298!!!FJ~Fiji Islands~679!!!FI~Finland~358!!!FR~France~33!!!GF~French Guiana~594!!!PF~French Polynesia~689!!!GA~Gabon~241!!!GM~Gambia, The~220!!!GE~Georgia~995!!!DE~Germany~49!!!GH~Ghana~233!!!GI~Gibraltar~350!!!GR~Greece~30!!!GL~Greenland~299!!!GD~Grenada~1!!!GP~Guadeloupe~590!!!GU~Guam~1!!!GT~Guatemala~502!!!GG~Guernsey~44!!!GN~Guinea~224!!!GW~Guinea-Bissau~245!!!GY~Guyana~592!!!HT~Haiti~509!!!VA~Holy See (Vatican City)~379!!!HN~Honduras~504!!!HK~Hong Kong SAR~852!!!HU~Hungary~36!!!IS~Iceland~354!!!IN~India~91!!!ID~Indonesia~62!!!IR~Iran~98!!!IQ~Iraq~964!!!IE~Ireland~353!!!IM~Isle of Man~44!!!IL~Israel~972!!!IT~Italy~39!!!JM~Jamaica~1!!!SJ~Jan Mayen~47!!!JP~Japan~81!!!JE~Jersey~44!!!JO~Jordan~962!!!KZ~Kazakhstan~7!!!KE~Kenya~254!!!KI~Kiribati~686!!!KR~Korea~82!!!KW~Kuwait~965!!!KG~Kyrgyzstan~996!!!LA~Laos~856!!!LV~Latvia~371!!!LB~Lebanon~961!!!LS~Lesotho~266!!!LR~Liberia~231!!!LY~Libya~218!!!LI~Liechtenstein~423!!!LT~Lithuania~370!!!LU~Luxembourg~352!!!MO~Macao SAR~853!!!MK~Macedonia, Former Yugoslav Republic of~389!!!MG~Madagascar~261!!!MW~Malawi~265!!!MY~Malaysia~60!!!MV~Maldives~960!!!ML~Mali~223!!!MT~Malta~356!!!MH~Marshall Islands~692!!!MQ~Martinique~596!!!MR~Mauritania~222!!!MU~Mauritius~230!!!YT~Mayotte~262!!!MX~Mexico~52!!!FM~Micronesia~691!!!MD~Moldova~373!!!MC~Monaco~377!!!MN~Mongolia~976!!!ME~Montenegro~382!!!MS~Montserrat~1!!!MA~Morocco~212!!!MZ~Mozambique~258!!!MM~Myanmar~95!!!NA~Namibia~264!!!NR~Nauru~674!!!NP~Nepal~977!!!NL~Netherlands~31!!!AN~Netherlands Antilles (Former)~599!!!NC~New Caledonia~687!!!NZ~New Zealand~64!!!NI~Nicaragua~505!!!NE~Niger~227!!!NG~Nigeria~234!!!NU~Niue~683!!!KP~North Korea~850!!!MP~Northern Mariana Islands~1!!!NO~Norway~47!!!OM~Oman~968!!!PK~Pakistan~92!!!PW~Palau~680!!!PS970~Palestinian Authority~970!!!PS~Palestinian Authority~972!!!PA~Panama~507!!!PG~Papua New Guinea~675!!!PY~Paraguay~595!!!PE~Peru~51!!!PH~Philippines~63!!!PL~Poland~48!!!PT~Portugal~351!!!QA~Qatar~974!!!CI~Republic of Côte d\'Ivoire~225!!!RE~Reunion~262!!!RO~Romania~40!!!RU~Russia~7!!!RW~Rwanda~250!!!SH~Saint Helena, Ascension and Tristan da Cunha~290!!!WS~Samoa~685!!!SM~San Marino~378!!!ST~São Tomé and Príncipe~239!!!SA~Saudi Arabia~966!!!SN~Senegal~221!!!RS~Serbia~381!!!SC~Seychelles~248!!!SL~Sierra Leone~232!!!SG~Singapore~65!!!SK~Slovakia~421!!!SI~Slovenia~386!!!SB~Solomon Islands~677!!!SO~Somalia~252!!!ZA~South Africa~27!!!ES~Spain~34!!!LK~Sri Lanka~94!!!KN~St. Kitts and Nevis~1!!!LC~St. Lucia~1!!!PM~St. Pierre and Miquelon~508!!!VC~St. Vincent and the Grenadines~1!!!SD~Sudan~249!!!SR~Suriname~597!!!SZ~Swaziland~268!!!SE~Sweden~46!!!CH~Switzerland~41!!!SY~Syria~963!!!TW~Taiwan~886!!!TJ~Tajikistan~992!!!TZ~Tanzania~255!!!TH~Thailand~66!!!TL~Timor-Leste~670!!!TG~Togo~228!!!TK~Tokelau~690!!!TO~Tonga~676!!!TT~Trinidad and Tobago~1!!!TA~Tristan da Cunha~290!!!TN~Tunisia~216!!!TR~Turkey~90!!!TM~Turkmenistan~993!!!TC~Turks and Caicos Islands~1!!!TV~Tuvalu~688!!!UG~Uganda~256!!!UA~Ukraine~380!!!AE~United Arab Emirates~971!!!UK~United Kingdom~44!!!US~United States~1!!!UM~United States Minor Outlying Islands~1!!!UY~Uruguay~598!!!UZ~Uzbekistan~998!!!VU~Vanuatu~678!!!VE~Venezuela~58!!!VN~Vietnam~84!!!VG~Virgin Islands, British~1!!!VI~Virgin Islands, U.S.~1!!!WF~Wallis and Futuna~681!!!YE~Yemen~967!!!ZM~Zambia~260!!!ZW~Zimbabwe~263',AF:'https://account.live.com/Agreement/Privacy?wreply=https://login.live.com/oauth20_authorize.srf%3fscope%3donedrive.readwrite%2520wl.basic%2520wl.skydrive_update%26response_type%3dcode%26redirect_uri%3dhttps://login.live.com/oauth20_desktop.srf%26client_id%3d9a1b4fdc-e764-40c0-b214-fe2f00dcba84%26contextid%3d53FC224CABC54483%26bk%3d1481869586%26mkt%3dEN-US%26lc%3d1033&uiflavor=host&client_id=1E0000401B6B03&mkt=EN-US&lc=1033&uaid=2a160c6da47144d7b33c8f7fd09c2ad2',sFTTag:'<input type="hidden" name="PPFT" id="i0327" value="DSex7hVSPdysMGSPW*VHaNR1TMXPWDpCt1k5JYNHa0mMmG2CxDmkmTBIfYmoPz1uyyfHrv3lopR09VLmk*RK6LwOxXfdB2EChwazFsQIS6sFKTzyhzA0yy5BZEAUz9WJih!hlmMSezx72pW*tHH33T7ogrkcVF!YP71qjVis7P*sVeC5ETsQpdaOlMYan4RgkyrHe9UZejjTN7ADE9OnJhg$"/>',b:'',e:'https://account.live.com/ResetPassword.aspx?wreply=https://login.live.com/oauth20_authorize.srf%3fscope%3donedrive.readwrite%2520wl.basic%2520wl.skydrive_update%26response_type%3dcode%26redirect_uri%3dhttps://login.live.com/oauth20_desktop.srf%26client_id%3d9a1b4fdc-e764-40c0-b214-fe2f00dcba84%26contextid%3d53FC224CABC54483%26bk%3d1481869586&id=279469&uiflavor=host&client_id=1E0000401B6B03&uaid=2a160c6da47144d7b33c8f7fd09c2ad2&mkt=EN-US&lc=1033&bk=1481869586',g:'',Bc:'',h:true,i:''};</script><script type="text/javascript" src="https://auth.gfx.ms/16.000.26884.00/DefaultLoginPaginatedStrings.EN.js"></script>
  <script type="text/javascript" src="https://auth.gfx.ms/16.000.26884.00/DefaultLogin_PCore.js"></script>
  <script type="text/javascript">SRSRetry("__DefaultLoginPaginatedStrings", "https://auth.gfx.ms/16.000.26884.00/DefaultLoginPaginatedStrings.EN.js", 1);SRSRetry("__DefaultLogin_PCore", "https://auth.gfx.ms/16.000.26884.00/DefaultLogin_PCore.js", 1);</script><script type="text/javascript" src="https://auth.gfx.ms/16.000.26884.00/DefaultLoginPaginatedStrings.EN.js"></script><script type="text/javascript" src="https://auth.gfx.ms/16.000.26884.00/DefaultLogin_PCore.js"></script><script type="text/javascript">SRSRetry("__DefaultLoginPaginatedStrings", "https://auth.gfx.ms/16.000.26884.00/DefaultLoginPaginatedStrings.EN.js", 2);SRSRetry("__DefaultLogin_PCore", "https://auth.gfx.ms/16.000.26884.00/DefaultLogin_PCore.js", 2);</script></head>
<body class="cb" data-bind="defineGlobals: ServerData, bodyCssClass">
</body></html>


Please let me know what is the issue.
I have checked and proxy is not blocking(able to open the uri from chrome browser) and I am sure that js is working fine with the browser.

Regards,
Amrut

fo.se...@gmail.com

unread,
Jan 10, 2017, 9:55:06 AM1/10/17
to CefSharp
Hi Amrut,

I currently have the exact same problem. Did you already find a solution for this?

Kind regards,
Florian

fo.se...@gmail.com

unread,
Jan 11, 2017, 7:07:51 AM1/11/17
to CefSharp
upgrading to cefSharp 53.0.1 seems to help
Reply all
Reply to author
Forward
0 new messages