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

  • SEARCH
  • Home
  • 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 6535607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:23:35+00:00 2026-05-25T10:23:35+00:00

I have a scenario where we are developing an app with both a Business

  • 0

I have a scenario where we are developing an app with both a Business to Customer interface, and a Business to Business interface.

The B2B interface is a RESTful interface to modify resources that the B2C interface manipulates through a bunch of nice friendly interfaces.

Because the B2B interface allows access to more functionality than the B2C interface, it’s a requirement that the B2B interface use Mutual Certificate authentication.

Our target environment/stack is Apache => Tomcat => Grails => Irrelevant Infrastructure

My current research indicates that Apache will be doing the authentication, and then passing auth details on to Tomcat? Is this the case? I’ve been looking at the spring-security-plugin which seems to provide what we want, and I’m confident we could provide either option on its own.

I just haven’t seen any discussion around configuring multiple different authentication mechanisms.

Note: I’m not after fallback auth. If you can’t access B2B via Mutual Certificate auth there should not be the option to use basic auth

  • 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-05-25T10:23:36+00:00Added an answer on May 25, 2026 at 10:23 am

    Yes, you can. There are 2 solutions:

    1. First solution

    The trick here is to configure Apache to ask for client authentication, but not require it. It’s configured like this in your Apache configuration:

    <VirtualHost mysite:443>
    
      //usual SSL VHost config
    
      SSLVerifyClient optional
    
    
      RequestHeader set SSL_CLIENT_S_DN "%{SSL_CLIENT_S_DN}s"
      RequestHeader set SSL_CLIENT_I_DN "%{SSL_CLIENT_I_DN}s"
      RequestHeader set SSL_SERVER_S_DN_OU "%{SSL_SERVER_S_DN_OU}s"
      RequestHeader set SSL_CLIENT_VERIFY "%{SSL_CLIENT_VERIFY}s"
    
      ProxyPass          http://localhost:50161/path_to_protect
      ProxyPassReverse   http://localhost:50161/path_to_protect
    
    </VirtualHost>
    

    At the application level, you have to check that for the sensitive paths, Apache provides a certificate by checking the header. Alternatively, you can also do this access control at Apache level (via tags).
    For the non-sensitive paths, you can configure your application to ask for login/passwords.

    2. Second solution

    You can declare two VirtualHosts in Apache: one that is configured with SSLVerifyClient require and that allow access to your sensitive path, one that is configured with SSLVerifyClient optional and that allow access only to your non-sensitive path.

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

Sidebar

Related Questions

This is the scenario i have: im developing a web app that will list
Scenario I am developing an application that intensively use randomly generated values. I have
I am developing a WPF app in C# where I have an Uri that
I am developing a small app using jquery mobile. I have the following scenario
I have scenario, I have two update panels on the page (both have update
I have a path defined: when /the admin home\s?page/ /admin/ I have scenario that
OK let me explain the scenario. I am developing an app which has a
I'm developing a first iPhone app for iOS 4.x/5.0 and have some confusions on
This is the scenario: I'm developing a dropdown widget in Jquery. I have to
I am developing a java application. I have scenario to take screen shot of

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.