Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execute API code as xelsysadm from ManagedBean

Alex StanciuMay 28 2014 — edited Jun 11 2014

Hello

I am trying to figure out how to get a client or API service as xelsysadm, without doing a remote client with client.login().

I have a custom ADF Taskflow that I deployed within OIM ( a custom link on the Self Service left nav bar opens a custom tool as a tab right within OIM ). I am currently running some API code as the currently logged in user and I'm getting the API services using OIMClientFactory like so:

userService = OIMClientFactory.getUserManager()

But I need the ability to run some code as either xelsysadm or a system account (oiminternal or whatever). I tried using Platform but that apparently does not work in this context (please correct me if I'm wrong).

I know that in event handlers and adapters, you can use Platform.getService() to get API services that run as system admin, but how does one do that in ADF? Is there a way to change the context or what is the best practice here?

My backup alternative is to store the xelsysadm creds in the CSF store and do a client.login() but I really would prefer to not to do that.

If anyone has any insight, I'd very much appreciate it!

Thank you

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 9 2014
Added on May 28 2014
11 comments
805 views