cancel
Showing results for 
Search instead for 
Did you mean: 

SWITCH user from DIALOG to SERVICE, how???

szymon_bolek
Participant
0 Kudos

hello:)

I'm developing the WD for ABAP app and have th following scenario to fulfill.

My service starts with the service user(no logon dialog) which was maintained with ICF.

Than with the

SUSR_INTERNET_USERSWITCH

I change to the DIALOG user. But how can I switch to another DIALOG user or back to the SERVICE user after that??

I know that I could close the browser, but I really would not like to do that.

any help is more than welcome

best regards

Simon:)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Wow, I can only begin to imagine why you need this.

I can only suggest you discuss with Basis / Portal admin to clarify the overall

approach user management and service security.

I would love to know why you need this.

For initial hacking.... you can try

HTTP_DELETE_SSO2_COOKIE

HTTP_AUTHENTICATE

To force new authentication.

You can also, use calls to RFC destinations to post things under different users.

You can redirect to another service using the exit plug

that requires a different logon approach.

The main issue I see is if the original service is a KIOSK default user,

and you use a switch user, then the new SSO2 cookie should end up in browser.

That browser session will automatically provide those credentials until they are removed.

Web dynpro development is not meant to be a SSO2 mgt tool.

Perhaps BSPs are better suited? Especially if JAVA script is required beyond application exit/restart. This is OK in Web Dynp via SICF settings.

If you want a KIOSK type tool that logs the current user off,

you can look to put a special EXIT page in SICF for the service.

This exit page can contain Java script that deletes the SSO2 cookie, and restarts

the same or another front door service.

regards

Phil

szymon_bolek
Participant
0 Kudos

hello Phil,

thanks for You answer!

well I did discussed it with my admin, and basically I do not need to 'logout' the user like this. But I just wanted to know this anyway just in case, to my knowledge. Simple closing the browser will be enough.

thanks again and best regards

Simon:)

Former Member
0 Kudos

Yes closing the closing the browser will work

You can also do this on EXIT using SICF exit page java script.

cheers

Phil

Answers (1)

Answers (1)

former_member204338
Participant
0 Kudos

just to complete the theme: runtime->server->logoff( ). was enough to switch to service user back.