Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8641811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:37:34+00:00 2026-06-12T11:37:34+00:00

We are writing an application which provides a RESTful API. The application needs to

  • 0

We are writing an application which provides a RESTful API. The application needs to be secured, but I don’t want my Authentication/Encryption mechanism to pollute the interfaced program nor the API.

I was wondering if a Proxy could be helping in our case, but since I’m not an expert in web development, I need to know if my picture makes sense. The structure of the system should be the following:

  1. The server program simply exports the API on a TCP port, which however can be accessed only from a local process (bound to 127.0.0.1);

  2. A proxy server manages SSL and Authentication:

    • The URI and methods are exported as they are, but…
    • Only authenticated users, having the required capabilities, can actually call them, and…
    • The communication must be running on an encrypted channel

So, my questions are:

  1. Is this a reasonable scenario?

  2. What is a good proxy server which I could be running for this job?

  3. Is there any drawback in doing this?

Thanks for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:37:35+00:00Added an answer on June 12, 2026 at 11:37 am

    It seems that the general scenario you have could be achieved by using an HTTPS reverse proxy. There are multiple implementations out there.

    A popular one is Apache Httpd: it can handle incoming HTTPS connections, authentication (using a variety of mechanisms) and reverse proxy.

    A typical scenario, where you would have a “plain” HTTP application listening on localhost would be to have Apache Httpd in front of it and handling external connections, where:

    • mod_ssl handles the SSL/TLS configuration of your server.
    • One of the various mod_auth* modules handles the authentication (depending on how you want to perform authentication); these should be able to export an authenticated user name (e.g. REMOTE_USER) to the back-end for authorisation.
    • mod_proxy handles the connection to the back-end application (e.g. via mod_proxy_http when the application server is using HTTP itself).

    Letting only the users that have the required capabilities to perform certain actions is the authorisation part. This one is harder to separate from your main API, simply because the front-end can’t guess how you define “having the required capabilities”. That’s not to say you have to tangle it with the rest of your logic, but the authorisation system will need to know how your API works (i.e. what the possible actions are), hence it’s usually best implemented within the main application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing an application which plays multiple sounds concurrently, each sound needs to be
I am writing an application which has an authenticity mechanism, using HMAC-sha1, plus a
I'm writing a wrapper layer to be used with mingw which provides the application
I am writing a plug-in module for Revit Architecture, which provides a .NET API.
I want to build a Java EE application (EAR) which not only provides web
I'm writing an application which I want to work with both Active Directory and
I have an application which I'm writing which needs to perform long computations in
I am writing a gem which provides helpers for views. The HTML I want
I am writing an Android API level 10 application which captures videos and then
In a nutshell, I'm writing an application that needs a BlockingQueue implementation that provides

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.