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 6004079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:12:44+00:00 2026-05-23T01:12:44+00:00

Okay, so I’ve been running a Java/Jersey webservice on Tomcat with basic authentication which

  • 0

Okay, so I’ve been running a Java/Jersey webservice on Tomcat with basic authentication which works perfectly fine. I’ve got permissions set up in the web.xml file of my project, and users set up in tomcat-users.xml on the server. Works great.
Problem is, now I have to transfer this project to WebSphere, which has nowhere near as simple of an implementation of basic authentication.

I’ve seen this question: Websphere 6.1 and BASIC Authentication and looked at Chapter 7 of this pdf like suggested, but I can’t seem to find the right settings (I have no option labeled ‘enable global security’ like most methods use), and am trying to run my project, while the pdf is extremely project specific.

So to ask my question clearly, what is the easiest way to enable basic authentication on WebSphere 6.1?

  • 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-23T01:12:44+00:00Added an answer on May 23, 2026 at 1:12 am

    After writing all this below I remember I have blogged about this for myself here:

    WebSphere 6.1 and Application Authentication

    As I understand you have setup your web.xml correctly thus:

         <security-role>
        <role-name>myrole</role-name>
      </security-role>
    
      <security-constraint>
        <web-resource-collection>
          <web-resource-name>mySec</web-resource-name>
          <url-pattern>/yourUrl</url-pattern>
          <http-method>DELETE</http-method>
          <http-method>GET</http-method>
          <http-method>POST</http-method>
          <http-method>PUT</http-method>
          <http-method>HEAD</http-method>
          <http-method>TRACE</http-method>
          <http-method>OPTIONS</http-method>
        </web-resource-collection>
        <auth-constraint>
          <role-name>myrole</role-name>
        </auth-constraint>
        <user-data-constraint>
          <description>SSL or MSSL not required</description>
          <transport-guarantee>NONE</transport-guarantee>
        </user-data-constraint>
      </security-constraint>
    
      <login-config>
        <auth-method>BASIC</auth-method>
        <realm-name>my login</realm-name>
      </login-config>
    

    This is if you are using the administration console you dont state that you are not so go to the console:

    http://localhost:9060/ibm/console
    

    Then login (if you have administrative security setup)

    Then go here

    1. left hand panel click Security
    2. Secure administration, applications, and infrastructure
    3. There is then a section on the page Application security
    4. Check the box Enable application security
    5. click apply, then save to master config.

    Then you have application security turned on. Now you need to map the users of your application to users within websphere.

    Go here

    1. List item
    2. Applications > Enterprise Applications
    3. Click your application
    4. Under the Detailed Properties section you will see a link Security role to user/group mapping
      you will only see this link if your web.xml is setup correctly
    5. click the Security role to user/group mapping
    6. Select the roles you wish to use for authentication
    7. Click look up users or look up groups
    8. click search and select users (that are setup in your websphere under Users and Groups menu
    9. use the arrows to move the selected users/groups to the right hand box
    10. click ok and save to master configuration.
    11. restart your server.

    Administration security (security of Websphere itself) must be turned on for it to work.

    WebSphere can be complex but it is powerful and capable.

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

Sidebar

Related Questions

Okay, so I'm running a small test webserver on my private network. I've got
Okay, so I've got some C code to perform a mathematical operation which could,
Okay. So I've got a a little jQuery gallery scroller I wrote to work
Okay, I've been struggling with this for a while now. I have a standard
Okay, I've looked all over the internet for a good solution to get PHP
Okay so im working on this php image upload system but for some reason
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, I've seen but haven't programmed in C# before. You can assume I'm competent
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my
Okay, so I'm making a table right now for Box Items. Now, a Box

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.