Copied to clipboard

Flag this post as spam?

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


  • Mikael Axel Kleinwort 86 posts 333 karma points c-trib
    Apr 27, 2021 @ 16:42
    Mikael Axel Kleinwort
    0

    Member login via OAuth 2.0

    Hello Umbracians,

    I am on Umbraco 8.

    Instead of using the regular membership provider for frontend Umbraco users, I want frontend users to login through an external provider via OAuth 2.0

    I have read about ASP.NET Identity. I have found this sample solution from Microsoft on how to use the WebAuthenticationBroker class to connect top OAuth providers. I also found Shazwazza's UmbracoIdentity.

    However, I am not clear about how all this plugs together. Is there an example, or a video, for how to use an external OAuth login provider with Umbraco? I can code it only once I understand the concept in detail.

    Thank you in advance for your attention to my question.

    Mikael

  • Brendan Rice 430 posts 718 karma points
    Apr 27, 2021 @ 16:51
    Brendan Rice
    0

    Hi Mikael,

    I've recently used UmbracoIdentity on a project and it's fairly straight forward to set up, just Nuget install it:

    Install-Package UmbracoIdentity
    

    Once it's installed it will create a sample controller and that you can learn from and alter.

  • Mikael Axel Kleinwort 86 posts 333 karma points c-trib
    May 07, 2021 @ 07:14
    Mikael Axel Kleinwort
    0

    Hello Brendan,

    thank you for your suggestion. I have been playing with UmbracoIdentity now for the last week and I learned a lot. I got the basics of the OAuth 2.0 login with Umbraco working and I am happy.

    I still have a few details not sorted out though. One is how to gain access to the Umbraco Member inside of an Owin event handler. I have posted a separate question for this here.

  • Nemanja Stankovic 7 posts 77 karma points
    1 week ago
    Nemanja Stankovic
    0

    Hi Mikael,

    I am happy to read that manage things to work. You are working on something that I need at this time :)

    Can you can please confirm that you managed to get OAuth authentication working for Umbraco members in the front-end? Is it possible to share the code or concept?

    My need is to communicate with a custom OAuth provider (none of the big ones) and to allow access to a protected section of the website.

    Thank you in advance.

    Cheers, Nemanja.

Please Sign in or register to post replies

Write your reply to:

Draft