Copied to clipboard

Flag this post as spam?

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


  • Ben Trewhella 1 post 71 karma points
    Jun 03, 2024 @ 14:37
    Ben Trewhella
    0

    Query member group (via username & password) via API

    I have a native game app that needs to check to see if a user is a member of an Umbraco project.

    I would like to call a rest or curl type API with username and password to check if the user is registered, has correct password, and belongs to the correct member group, returning as Json or similar.

    The app is built in Unity so I cannot call usual Umbraco backend or other internal methods.

    Users of the Unity app would be members, not backoffice users, so they need a way to check their own membership without being logged in already.

    Web searches lead me back to use Umbraco C# methods calls, or potentially an OAuth plugin, but it looks like this is for Umbraco projects to authorise member logins from other web services, the reverse of what I am after.

    Another potential route could be creating a BackOffice API, which looks to replace the Umbraco API controllers. I have no problems creating custom c# classes, but cannot work out if this is the right direction to take.

    Is anyone able to point me in the right vague direction? Huge further thank you if you can provide a link to a tutorial that does some of this, I would have thought it would be a fairly common use case.

    I am using Umbraco 14, although can easily use an earlier version if needs be.

    Many thanks

Please Sign in or register to post replies

Write your reply to:

Draft