Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Add ldap auth to custom webapp?

    Support
    proxyauth
    2
    2
    176
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      saikarthik last edited by girish

      I am building a Node.js based custom webapp. But I don't want my webapp files (/app/data/public) files to be publicly accessible unless it's a cloudron authenticated user. So I want to add a login prompt in front of the app (auth wall I think?).

      Example: Assume Surfer app is installed at surfer.x.com, going to surfer.x.com/_admin/ shows what I am looking for.
      Screen Shot 2020-11-14 at 1.50.07 PM.png

      So I am currently referring to: https://git.cloudron.io/cloudron/surfer/-/tree/master/frontend

      I have added the ldap add-on in CloudronManifest.json.

      What is the easiest way to accomplish this? Is the Surfer app approach the best way to go about it?

      I also found this thread on the forums:
      https://forum.cloudron.io/topic/3682/proxyauth-addon/14
      Is this what I am looking for?

      mehdi 1 Reply Last reply Reply Quote 1
      • mehdi
        mehdi App Dev @saikarthik last edited by

        @saikarthik Yes, the proxy addon seems good for what you are looking for.

        However, it's not available yet, it'll only be released with Cloudron 6 (I think the devs estimated about 2 weeks, but it's only an estimate).

        Also, it does not allow for more fine-grained control, so if you want to restrict only a few things, you'll have to do it manually, and in that case yeah you can take inspiration in the Surfer app for example.

        1 Reply Last reply Reply Quote 2
        • mehdi
          mehdi App Dev @saikarthik last edited by

          @saikarthik Yes, the proxy addon seems good for what you are looking for.

          However, it's not available yet, it'll only be released with Cloudron 6 (I think the devs estimated about 2 weeks, but it's only an estimate).

          Also, it does not allow for more fine-grained control, so if you want to restrict only a few things, you'll have to do it manually, and in that case yeah you can take inspiration in the Surfer app for example.

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          Powered by NodeBB