Copied to clipboard

Flag this post as spam?

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


  • David McDonnell 53 posts 251 karma points
    Feb 06, 2018 @ 16:10
    David McDonnell
    0

    Umbraco OAuth Members Authentication via API

    Hi I am trying to use a web api solution that hooks into Umbraco that is a separate solution to the Umbraco web application portal.

    I am also trying to use OAuth Refresh Tokens for Member authentication for my mobile apps.

    I have the refresh token system working using the web portal, but I am unable to get it working using the API solution.

    I am using the solution supplied by Shannon in the following forum post https://our.umbraco.org/forum/developers/api-questions/74807-securing-a-custom-api-controller-with-oauth-plus-members

    The issue I get with the API is that the member user manager being resolved is always null.

    Do I need to have Umbraco installed in the API solution or will UmbracoCMS.core be sufficient?

    Any help is greatly appreciated. David

  • John Bergman 483 posts 1132 karma points
    Feb 06, 2018 @ 18:46
  • David McDonnell 53 posts 251 karma points
    Feb 07, 2018 @ 15:50
    David McDonnell
    0

    Hi John thanks for the heads up on this post but I am looking to get OAuth working with a solution where Umbraco CMS is only installed on another Application but has access to the same Umbraco DB

    Looking to achieve the following setup:

    enter image description here

  • David McDonnell 53 posts 251 karma points
    Feb 07, 2018 @ 17:03
    David McDonnell
    0

    The issue I can see is the AppBuilderExtension class appContext.isConfigured is false which stops the userManager being loaded

    Any ideas why this is false?

  • David McDonnell 53 posts 251 karma points
    Feb 08, 2018 @ 09:41
    David McDonnell
    100

    Managed to get this working by changing the check for isConfigured to isReady which was true

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Feb 22, 2018 @ 15:18
  • 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