wood burning stoves
The moose likes BEA/Weblogic and the fly likes Custom Authorization in Weblogic 9.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Custom Authorization in Weblogic 9.1" Watch "Custom Authorization in Weblogic 9.1" New topic

Custom Authorization in Weblogic 9.1

Tarun Chatterjee

Joined: Mar 07, 2005
Posts: 25
How can we pass USerName Programatically to Weblogic before Weblogic checks for Authorization Access for the EJB.

Currently I have configured the UserName,Group, Scoped Roles and Scoped Policies for the specified EJB for whom the access needs to be restricted.

As i am unable to pass the username to weblogic( I am not using Weblogic Authentication) it does not allow access to valid users too considering all username as anonymous.

Can anyone throw soem light?

Thanks and Regards
Tarun Chatterjee

Email: chatterjee_tin@yahoo.com
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Is the EJB client internal or external to WebLogic? What code are you using to call the EJB?
Tarun Chatterjee

Joined: Mar 07, 2005
Posts: 25
Client is internal.
call to EJB is through a Service Abstraction Layer.
It has a Service Locator and through that we get the handle to the Remote Object and we call methods on that EJB.

My Problem is, I have a manula Authentication mechanism using a Database.
I want to use Weblogic Authorization to restrict access on EJB.

How do i set the Username/Password of the user accessing the EJB.?
It is sorta covered in the JavaRanch Style Guide.
subject: Custom Authorization in Weblogic 9.1