Skip to Content
author's profile photo Former Member
Former Member

Getting the current user id in cas

Hi All,

Can anyone help to determine the current user id entered in the portal for login through a composite application service?

Is there any way of getting the IUser object without knowing the unique id?

We are working with CE 7.1

Thanks in advance.

Regards,

Srinivasan Subbiah

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 03:11 PM

    Hi,

    It is CAF. But context is not visible.

    How can i get the context and also how to get request object

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      If the client (VC, WD4J, etc) that's invoking the CAF service has already authenticated the user, then the user information can be passed to the service via LogonTickets (configured within NWA). Once you do that, you don't need to explicitly "get" the session.

      Rao

  • author's profile photo Former Member
    Former Member
    Posted on Apr 08, 2008 at 03:04 PM

    within CAF or a JEE (EJB project), you can use the below statement to get the userId....

    String userName = context.getCallerPrincipal().getName();

    Rao

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.