Hi!

I am an embedded systems guy so this is new territory for me. I want to be able to host my own userbase somewhere, mainly I just want to figure out how they work. But all i can find are closed solutions that have some amount of pricing or are obscured. I also feel like it’d be wrong to re-write something like this myself.

I’ve tried googling around a bit but keep getting similar results so I am assuming I am asking the wrong question. What I want: Ideally some kind of dockerized setup where a user can navigate to a website to create an account, which I can then query through php or some other API. Stuff like password reset or stripe would be nice but is secondary as that can most likely be added another way.

I found stuff like usernbase which seems interesting and even includes something like subscriptions, but I’d like to self host it and not rely on something like the AWS.

Ideally I want to get OAUTH2.0 to work as well, to learn how exactly it works.

Any pointers would be greatly appreciated!

  • Admiral Patrick@dubvee.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

    I use OpenLDAP for my source of truth (user base) and have Authelia configured to use that for users.

    Authelia supports acting as an OIDC provider as well as an auth source for apps I host behind Nginx.

    For apps that support LDAP, they’re plumbed directly in to that and apps using more modern auth schemes (or apps that don’t support either OIDC/LDAP) are protected by Authelia - they use the same userbase in LDAP.

    OpenLDAP isn’t easy, though, so you might want to look at something like FreeIPA or 389 Directory Server instead.

    • zweieuro@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      Absolutely general purpose. In the most simple terms, email, password hash, and a bit of metadata

  • harsh3466@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    I’m not entirely sure what you mean by userbase, but based on your description it sounds like you could set up a Wordpress docker container with some plugins to handle what you want and then use the Wordpress api for the calls. If you’re looking for like a paid membership situation for the site, there are free and pay plugins that can accomplish the payments and subscription integrations.

    • zweieuro@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      I am very reluctant to use WordPress at all because I’ve heard terrible things from multiple colleagues. It looks like something that’d get problematic at some point.

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        Wordpress issues lie in using plugins that aren’t maintained or written well. The source and quality of plugins varies wildly.

      • harsh3466@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        That’s totally fair. Wordpress can accomplish what you want, but also can be a giant nightmare. I ran a membership based Wordpress site for around a decade (self hosted and maintained), and it was mostly okay, but also many times a giant headache. I fully understand wanting to avoid Wordpress.

  • towerful@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    Supabase is a dockerised postgres with user auth, rest API and some other goodies. It’s maybe too complicated as a starter.
    Appwrite might also work for ya. Much easier to get into, but also less feature complete.
    Pocketbase might also work. Haven’t used it tho

  • DeprecatedCompatV2@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 months ago

    What is your goal? Custom stuff isn’t too hard if you just want to implement basic password login and token-based auth. Otherwise you could use something like Firebase, Okta, or Cognito.