ADDENDUM: Just noticed the following: the NAME of a ROLE should not longer be than 11 characters!!!!! I took me a while to figure that out
This is a note to myself in order to remember how to enable basic security authentication for webservices deployed in a weblogic container.
In your webapplication or webservices project you will have at least the following files:
web.xml , should contain the following sections:
weblogic.xml , should contain the following section:
In the weblogic console configure the following:
Create User(s) and link the user to a group (not needed, but will do this in this example)
–> Security Realms –> Select Realm –> Select TAB Users and Groups
–> Select TAB Users, create New User
–> Select TAB Groups, create New Group
, Now go back to the user and assign this user to the group you created earlier….
–> Security Realms –> Select Realm –> Select TAB Roles and Policies –> Select Realm Roles –> Select Global Roles –> Select Role
push the button NEW and create the ROLE with the NAME that corresponds with the name you have used in your weblogic.xml and web.xml
Finally select the created role and assign Rules to this role
In this example I have selected the ROLE and added the condition GROUP and thereby selected the name of the GROUP I created earlier.