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
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.
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).
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.
Hi Did you got to solve your problem?
Hey,
Please have a look here https://umbraco.com/blog/log-into-umbraco-with-google-authentication/
Do you know if following those steps will still keep the default Umbraco provider in place? For people outside of my domain like clients?
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.
Excellent, thanks!
is working on a reply...