-
Notifications
You must be signed in to change notification settings - Fork 76
Google Sign In Issue #20
Description
I have written the following code to integrate the Google Sign In.
`<%@ Page Title="login" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<asp:Content ID="Header" ContentPlaceHolderID="headContentPlaceHolder" Runat="Server">
<script type="text/javascript">
(function () {
var po = document.createElement('script');
po.type = 'text/javascript'; po.async = true;
po.src = 'https://plus.google.com/js/client:plusone.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
</script>
</asp:Content>
<asp:Content ID="Body" ContentPlaceHolderID="BodyContentPlaceHolder" Runat="Server">
sign in
<%--Google+--%>
<%----%>
<%--<div id="gConnect">
<button class="g-signin"
data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email "
data-requestvisibleactions="http://schemas.google.com/AddActivity"
data-clientid="538471399363-nbfgv00mksir2cnh2fi4vfld8nfqhuv3.apps.googleusercontent.com"
data-accesstype="offline"
data-callback="onSignInCallback"
data-theme="dark"
data-cookiepolicy="single_host_origin">
</button>
</div>--%>
<script type="text/javascript">
function onSignInCallback(authResult) {
if (authResult['access_token']) {
var loc = '/?accessToken=' + authResult['access_token'];
window.location.href = loc;
}
//var str = JSON.stringify(authResult);alert(str);
}
</script>
</asp:Content>`
It's not working in IE but working in Chrome.
Request got stuck on below url while in IE after after entering credentials.