You must Sign In to post a response.
  • Category: ASP.NET

    Login page for google account

    i want to create login page for google account using c#
  • #767889
    you want to login to your account using Google account right ? for that you need to use Google API, to download you google API you need to create an Application in Google Console and get Client ID and Client Secret, after that you will get a 'GoogleConnect' class and it has method named 'Authorize' you can pass 'profile' and 'email' to it and get its access
    see below snippet for more details

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #767891
    i created a page by using following link
    but it shows error
    Sequence contains no elements
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.InvalidOperationException: Sequence contains no elements
    Source Error:
    Line 39: OpenIdRelyingParty openid = new OpenIdRelyingParty();
    Line 40: var URIbuilder = new UriBuilder(Request.Url) { Query = "" };
    Line 41: var req = openid.CreateRequest(discoveryUri, URIbuilder.Uri, URIbuilder.Uri);
    Line 42: req.RedirectToProvider();
    Line 43: }
    what is claimed identifier?

  • Sign In to post your comments