Skip to Content

1. Overview

     This bolg describes how to configure RedirectApp application in NW 7.3 portal.

2. Project Structure

     Below diagram shows the project structure of RedirectApp application

Fig1.JPG

main.jsp

main.jsp

<%@ page language=“java” %>

<%

String redirectURL = request.getParameter (“redirectURL”);

response.sendRedirect (redirectURL);

%>

web.xml

web.xml

<?xml version=“1.0” encoding=“UTF-8”?>

<web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns=http://java.sun.com/xml/ns/javaee xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd id=“WebApp_ID” version=“2.5”>

<display-name>RedirectApp</display-name>

<servlet>

<servlet-name>main.jsp</servlet-name>

<jsp-file>/main.jsp</jsp-file>

</servlet>

<servlet-mapping>

<servlet-name>main.jsp</servlet-name>

<url-pattern>/</url-pattern>

</servlet-mapping>

<session-config>

<!– 1 minute timeout

–>

<session-timeout>1</session-timeout>

</session-config>

<security-constraint>

<display-name>SecurityConstraint</display-name>

<web-resource-collection>

<web-resource-name>WebResource</web-resource-name>

<url-pattern>*</url-pattern>

</web-resource-collection>

<auth-constraint>

<role-name>DefaultSecurityRole</role-name>

</auth-constraint>

<user-data-constraint>

<transport-guarantee>NONE</transport-guarantee>

</user-data-constraint>

</security-constraint>

<security-role>

<role-name>DefaultSecurityRole</role-name>

</security-role>

</web-app>

3. Build and deploy the application

4. Configuration of RedirectApp

     1. Logon to NWA

     2. Navigate to Configuration->Security->Authentication and Single Sign-On

     Fig2.JPG

     3. Assign SPNego_Template to the Redirect application

     Fig3.JPG

     4. Logon to Portal and Modify the action

     Goto User Administration – Select Action and search for “*Redirect*. Click on modify and cancel button. Surprisongly, if you skip this step “RUN_AS_Redirect” role will not appear in the list (next step)

     Fig4.JPG

     5. Now, search for “RUN_AS_Redirect” role and Assign “Everyone” Group to this role.

     Fig5.JPG

     Fig6.JPG

Example for the Redirectapp URL

http://hostname:<port>/RedirectApp/?redirectURL=http://hostnameNew:<port>/sap/bc/bsp/sap/ytest

Pre-requisite

     SSO between both the servers are already established.

To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

  1. Symon Braunbaer

    This is gotta be a JOKE!!! The screenshots are NOT readable, I tried zooming in, starring at them from a very short distance, just NOT readable!!! Also the procedure itself is wrong (at least the link shown is wrong), I implemented it a different way, what a SCAM!!!

    (0) 
  2. Vera Gutbrod

    Hi Srinivasan!

    I am the space editor from the SAP Portal space. Could you please insert the images again, so that they are readable?

    Regards and thanks

    Vera

    (0) 

Leave a Reply