Copied to clipboard

Flag this post as spam?

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


  • Shahbaaz Shaikh 1 post 71 karma points
    Apr 02, 2019 @ 18:44
    Shahbaaz Shaikh
    0

    Google Authentication for website

    Hi, So i followed the tutorial to enable Google authentication in by backoffice https://our.umbraco.com/documentation/Tutorials/Add-Google-Authentication/

    Now I was trying to do the same in the website. I made a surface controller and created a login method but that doesn't seems to work and do not redirect to google auth page (which works fine for backoffice btw).

    public void Login()
    {
            var properties = new AuthenticationProperties { RedirectUri = "/" };
    
            this.HttpContext.GetOwinContext().Authentication.Challenge(properties, "Google");
    }
    

    this is what is appended to my url instead of a redirect to google

    http://mysite.com/login.aspx?ReturnUrl=%2fumbraco%2fSurface%2fUserAuthentication%2fLogin.

    Can anyone help with this please.

  • Mohammad 14 posts 83 karma points
    Aug 14, 2020 @ 15:30
    Mohammad
    0

    Hi Did you got to solve your problem?

  • Dhanesh Kumar MJ 167 posts 543 karma points MVP c-trib
    Aug 14, 2020 @ 18:09
  • Amir Khan 1289 posts 2746 karma points
    Aug 14, 2020 @ 18:20
    Amir Khan
    0

    Do you know if following those steps will still keep the default Umbraco provider in place? For people outside of my domain like clients?

  • Dhanesh Kumar MJ 167 posts 543 karma points MVP c-trib
    Aug 14, 2020 @ 18:24
    Dhanesh Kumar MJ
    0

    Yes Amir, google or any other Auth is an extra feature ,it will not replace the default behaviour of Umbraco. We recently did an Authentication with Azure AD and it's working fine.

  • Amir Khan 1289 posts 2746 karma points
    Aug 14, 2020 @ 18:44
    Amir Khan
    0

    Excellent, thanks!

  • 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