cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the portal sysID?

Former Member
0 Kudos

Hello,

inside a jsp file I try to get a value from the 'request' object:

'sysID', which contains the id of my portal system.

There is no method like getSysID().

Do you have an idea how to get this value?

Thanks.

Katharina

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dagfinn,

hope you had a nice trip back from the Teched. I´m pretty sure your suggested solution will work, but I think first one has to initialize the TicketVerifier with a valid ticket and since Katharina wants to get the SysID from her portal, this ticket has to be the SSO Ticket from the request. So I would add something like:

request.getServletRequest().getCookies()...

retrieve the Cookie and then tv.setTicket(ticket).

Another possible solution would be to access the UME property "login.ticket_issuer" via:

com.sap.security.api.util.IUMParameters umParams = UMFactory.getProperties();

String sysID = umParams.get(("login.ticket_issuer");

I haven't tried it but its worth to have a look at it.

Hope it helps.

Portal Developer

Message was slightly edited by: Portal Developer

Former Member
0 Kudos

Well, you are correct. I didn't really bother to read the entire javadoc for the class

The way to go is probably your second suggestions (via the UME property).

Teched was good, but it was some long days (the beer in norway is really expensive so you really have to grab any chance you have of cheap/free beer

Btw, how is hiding behind the alias "Portal Developer"? It is such a mysterious name

Former Member
0 Kudos

@Dagfinn Well, customers can sometimes ask questions like: "Why is this guy not working on our problems but on someone elses?".

Answers (1)

Answers (1)

Former Member
0 Kudos

There is some relevant information in the UME APIs

http://media.sdn.sap.com/html/submitted_docs/60_sp2_javadocs/ume/index.html

Try calling

TicketVerifier tv = UMFactory.getInstance ().getTicketVerifier ();

String systemId = tv.getSystemID() ;

Of course, you need a service reference in your component to the ume.

Haven't tested it myself, but it might work.