Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giorgos 6 posts 76 karma points
    Jan 19, 2016 @ 13:30
    Giorgos
    0

    Umbraco Identity for log in using Google or Facebook

    I installed the UmbracoIdentity package (Install-Package UmbracoIdentity) and the extensions for google and facebook in order to be able to login using facebook or google. I used the Account.cshtml which included in the package in order to login using the new package that I installed. In the Startup.Auth.cs that automatically created when I installed the package I inserted the following lines in order to enable the Facebook Authentication.

            app.UseFacebookAuthentication(
                 appId: "296106450571102",
                 appSecret: "bde97767dee96e743cbc364bbb39852d");
    

    The problem is that when I display the contents on the browser the equivalent button does not appear on the screen. When I do it on a classic ASP.NET MVC 5 application it works fine. The button appears on the screen. Can someone help me and tell me if I have to do something extra in order to make it work.

    I spent the entire day trying to find a tutorial for beginners in order to make it work but it was not successful.

  • Michaela Ivanova 12 posts 104 karma points
    Oct 10, 2016 @ 09:19
    Michaela Ivanova
    0

    Try this:

     app.UseFacebookAuthentication(new FacebookAuthenticationOptions
            {
                AppId = "yourAppId",
                AppSecret = "yourAppSecret",
                CallbackPath = new PathString("/umbraco/surface/UmbracoIdentityAccount/ExternalLoginConfirmation")
            });
    
  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Jan 19, 2017 @ 13:45
    Biagio Paruolo
    0

    Works for "login" on front end web site?

  • Michaela Ivanova 12 posts 104 karma points
    Jan 20, 2017 @ 08:11
    Michaela Ivanova
    0

    Yes, it works for me.

  • Micha Somers 134 posts 597 karma points
    Jan 19, 2017 @ 18:39
    Micha Somers
    0

    Hopefully you did not publish your real appsecret here ...

    In case you did, make sure you edit your post and provide some dummy text.

    See: https://developers.facebook.com/docs/apps/register#app-secret (Chapter 8: Protect your App Secret)

    Kind regards, Micha

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies