Leave a Comment:
12 comments
I believe there is a bug in this code snippet. You are setting sessionId to the value of getSessionToken, which is actually the token, and not the ID, and, therefore, it can not be used to setSessionAttributes. Is there a way to get the session ID from the session token? I do not see any way possible in the OAM SDK short of getting the
ReplyHello,
Yes – that’s right. The code snippet gets the sessionId from session.getSessionToken() and I have copied the code from testing code from multiple methods. THere is no way to get session ID from sessionToken. SessionID is purely OAM server side value.
In the code snippet, from the session.getSessionIds which is returning Set has to be iterated to get Session ID which is updated in the above code now.
Replyhi,
I got error message when trying to login into OAM admin console after fresh install. Any suggestions please.
Hi Experts,
I have understood that IAM will have obssocookie (10gwebgate), OAM_RMOETE_HEADER (OAM-identity assertor), any thing like session as well ?
Question is
Where is a mapping of enterprise Application session and OAM session ? in other words where we do configuration/assignment of session?
Assumption : Enterprise application is deployed on one weblogic. (application like ADF,WCP,EJB)
IAM is on another weblogic.
Help appreciated
ReplyHi Mahendra,
I have understood that IAM will have obssocookie (10gwebgate), OAM_RMOETE_HEADER (OAM-identity assertor), any thing like session as well ?
Question is
Where is a mapping of enterprise Application session and OAM session ? in other words where we do configuration/assignment of session?
Assumption : Enterprise application is deployed on one weblogic. (application like ADF,WCP,EJB)
IAM is on another weblogic.
Help appreciated
ReplyIgnited Mind,
When OAM is integrated with application deployed in WebLogic Server, the session settings in the application should be disabled/commented. One should leave session management to OAM to handle.
Hope this helps.
-Mahendra
ReplyHello Mahendra,
Can I define session attributes via authorization policy responses under application domain for a OAM 10G Webgate and retrieve the attributes using getSessionAttributes method.
Thanks
Venkat
Hi Mahendra,
How to collect the user attributes in the session hashtable at runtime?
ReplyIn access client, after user authenticates, can we get his all identity store attributes ?
Which api do we use in above case?
Swaroop,
You can use getSessionAttributes method.
https://docs.oracle.com/cd/E28280_01/apirefs.1111/e22472/toc.htm
For this you need to set response as “session” under the authorization policies in application domain.
Also, make sure the identity store you are using is pointed as default identity store.
cheers,
Venkat
thanks a lot for this post.
Using SDK from a local machine I can connect to OAM and initialize AccessClient as well as successfully authenticate.
However, despite using weblogic user which has administrative privileged, I am not able to invoke any of the session or attributes related to command.
for example
when i try to use Set set=session.getSessionIds(user_login);or
set=UserSessions.getSessionIds(user_login)
I get the following message on RED in my eclipse console
SEVERE:Operations not permitted on this server
Access Exception: OAMAGENT-02005
Could you please advise.
ramesh
ReplyThis one is resolved. This was already answered in other post. Basically, you need to set
“Allow Management Operations” in OAM Agent configuration.
thanks,
Reply