Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

redirect to SAP authentication window


I’ve created an application that requires authentication (sap.authentication value true on application properties).

Initially, when the user starts the application, he has to login using a default authentication window provided by SAP.

How can I perform a logout and redirect to the default authentication window?

Thanks in advance,


Former Member
Former Member replied


The code should be even simpler:


Cut form doc:

<i>url - the URL of the page that is shown to the user after logoff was done. If the parameter is null, the redirect is done to the "LogoffURL" URL that can be specified in the application properties. If this URL is also not defined, a redirect to a Web Dynpro internal logoff page is done.</i>

So you may either accept default logoff-page (just text "Web Dynpro application terminated. Good bye!" or provide your own page via application properties).

Next, it is impossible to just log-off to auth screen. It is necessary to set as log-off URL some application that requires authentication also.

This way WD will first log-off user, then shows auth-screen and then login him again to the target application.

So try the following:

1. Use code with null URL, forget about WDConfiguration.

2. In NW IDE open your application properties, and add standard property "log-off URL", for example "/useradmin/userAdminServlet?userProfileView";

This works for me (first application may be either with or without auth). My environment is NW04s, but this should work on NW04 as well.

Valery Silaev

EPAM Systems

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question