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 140 posts 484 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 538 posts 1099 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 140 posts 484 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 8 posts 98 karma points
    Jun 09, 2021 @ 14:19
    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.

  • Simon Morgan 4 posts 75 karma points notactivated
    Jun 09, 2021 @ 19:31
    Simon Morgan
    0

    If anyone has an code to share on this, it would be helpful.

    Working with UmbracoIdentity also, and Identity Server 4.

    Any help would be appreciated.

  • Brendan Rice 538 posts 1099 karma points
    Jun 21, 2021 @ 13:45
    Brendan Rice
    0

    What are you struggling with Simon?

    All the code you need should be created when you install the UmbracoIdentity package using Nuget. It creates a folder with the required views and also controllers.

  • Simon Morgan 4 posts 75 karma points notactivated
    Jun 21, 2021 @ 15:51
    Simon Morgan
    1

    Thanks Brendan,

    I figured it out. Once I'd set it up, it worked without issue.

    Appreciate the follow up.

  • Biagio Paruolo 1593 posts 1824 karma points c-trib
    Nov 06, 2021 @ 06:57
    Biagio Paruolo
    0

    How to?

  • Brendan Rice 538 posts 1099 karma points
    Jun 21, 2021 @ 16:14
    Brendan Rice
    1

    Glad you got it sorted Simon

  • Biagio Paruolo 1593 posts 1824 karma points c-trib
    Apr 26, 2022 @ 17:37
Please Sign in or register to post replies

Write your reply to:

Draft