Oracle Weblogic OAM get user information using session cookies
Asked Answered
P

1

6

Oracle/WebLogic noob here. I'm not sure if I'm asking the right questions but any and all tips will be greatly appreciated.

We are trying to deploy an Angular 4 web application on to an Oracle WebLogic server w Apache HTTP and security managed by OAM. The user will be directed to the OAM login screen initially and once they log in they will be directed to the Angular app.

One of my tasks is to get the user's userid to display on the navigation at the top, one of my colleagues suggested grabbing the information from one of the http cookies but I could not figure out where/which cookie it is. I looked all over the place and the only relevant cookie that I've found is the OAMAuthnCookie which contains the encrypted session related ID.

I don't think this is possible without some customization on the server-side, any straight-forward answers or suggestions to accomplish my task will be very helpful. Does WebLogic / OAM provide a web service I can use from my client-side Angular app to access the user information i'm looking for?

Thanks in advance :)

Pharr answered 19/5, 2017 at 19:48 Comment(0)
E
5

i think you may use;

  • oam_req cookie (set by the OAM server)

or

  • oamRequestContext cookie( set by 11g WebGate )
Elative answered 23/5, 2017 at 13:51 Comment(3)
Thanks for the answers guys, either of you guys know any other methods to access the user information such as a web service / REST API other than session cookies?Pharr
@Pharr you're welcome zvka, i suppose, this can be a good resource : linkListless
Sorry I meant to be more specific, wanted to know if there are any EXISTING services from OAM/WebGate that I can utilize, not develop a new service from scratch. Thanks!Pharr

© 2022 - 2024 — McMap. All rights reserved.