How to add a request mapper for a single asp page

Sheshagiri Raghunatharao Sheshagiri.Raghunatharao at aptean.com
Thu Dec 22 01:08:31 EST 2016


Nate,
Thank you for your response.  I had gone through the link which you have mentioned below.  However it didn’t work for my requirement.  Will explain you little bit more detail.

I have a folder in my application called “user”.  Uder the user another folder called “asp” is present.  Inside “asp” folder I have the pages home.asp and login.asp.  By default application will open home.asp which has some static information and Login hyperlink.  On clicking the Login hyperlink, the system will authenticate by capturing user id and password.

My requirement is whenever I start the application it should display home page and only when I click on Login Hyperlink, it should connect to IdP and authenticate through IdP.

Below is my RequestMapper

<RequestMapper type="Native">
        <RequestMap>
            <Host name="example.com" requireSession="false">
                                <Path name="user" requireSession="false">
                                                <Path name="asp">
                                                                <Path name="login.asp" authType="shibboleth" requireSession="true"/>

                                                </Path>
                                </Path>

                    </Host>
        </RequestMap>
    </RequestMapper>

My expectation by using above Request Map is that IdP authentication should happen for the url example.com/user/asp/login.asp only.  When the url is example.com/user/asp/home.asp  it should not redirect to IdP authentication.  But for me IdP authentication request is happening even when the url is  example.com/user/asp/home.asp.

ApplicationDefaults tag is specified as below

<ApplicationDefaults id="default" entityID="http://example.com/shibboleth"
                                                homeURL= "http://example.com/user/asp/login.asp"
                         REMOTE_USER="eppn persistent-id targeted-id"
                         cipherSuites="ECDHE+AESGCM:ECDHE:!aNULL:!eNULL:!LOW:!EXPORT:!RC4:!SHA:!SSLv2">


Attaching shibboleth2.xml for your reference.  Please let me know is there any other configuration settings is required.

Thanking you in advance for your help.

Thanks and Regards
Sheshagiri

From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Klingenstein, Nate
Sent: Wednesday, December 21, 2016 7:20 PM
To: Shib Users
Subject: Re: How to add a request mapper for a single asp page

Sheshagiri,

All asp pages of my application are under one folder namely “subFolder1”.  I need to request for the authentication from IdP when the user goes to a specific page for example for” Create User” Link which calls “CreateUser.asp”.  Is there any way I can provide the specific page name in the RequestMapper so that authentication is requested when user tries to go for that specific page.

Paths can extend down to the full URL space, not just folders.

https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPRequestMapPath

Here's the bigger picture:

https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPRequestMapHost

Take care,
Nate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20161222/18a6676e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shibboleth2.xml
Type: application/xml
Size: 8659 bytes
Desc: shibboleth2.xml
URL: <http://shibboleth.net/pipermail/users/attachments/20161222/18a6676e/attachment-0001.wsdl>


More information about the users mailing list