Deployment Example: SAML v2 Using Sun OpenSSO Enterprise 8.0

14.3 Testing Attribute Mapping

This test uses snoop.jsp to display the HTTP headers being passed in a browser window. Within the headers you see the attributes being passed to the service provider protected by the agent.

ProcedureTo Verify That Attribute Mapping is Working Properly

  1. Log into the host machine as the root user.

  2. Copy snoop.jsp to the /opt/SUNWwbsvr/ directory.

    snoop.jsp is in Appendix F, The snoop.jsp File.

  3. Access from a web browser.

    The Web Policy Agent redirects the request to the OpenSSO Enterprise console on the identity provider side.

  4. Log in to the OpenSSO Enterprise console as the test user.




    JSP Snoop page is the header from the HTTP request in the browser. Note the following:

    • John Smith's telephone number and email address are included.

    • The Remote user is anonymous and serves as confirmation of the transient user previously configured.

    JSP Snoop page
    Request information
    Requested URL:
    Request method: GET
    Request URI: /snoop.jsp
    Request protocol: HTTP/1.1
    Servlet path: /snoop.jsp
    Path info: null
    Path translated: null
    Query string: null
    Content length: -1
    Content type: null
    Server name:
    Server port: 1080
    Remote user: anonymous
    Remote address:
    Remote host:
    Authorization scheme: DSAME
    Request headers
    Header: Value:
    cookie  JSESSIONID=A7092AD436027D5B18DFCC8C65D7B580; 
      lulj6F8sTjtxvBpA8=@AAJTSQACMDMAAlMxAAIwMQ==#; amlbcookie=01
    user-agent 	Mozilla/5.0 (X11; U; SunOS sun4u; en-US; 
    rv: Gecko/20080703 Firefox/
    accept 	text/xml,application/xml,application/xhtml+xml,
    accept-language 	en-us,en;q=0.5
    accept-encoding 	gzip,deflate
    accept-charset 	ISO-8859-1,utf-8;q=0.7,*;q=0.7
    keep-alive 	300
    connection 	keep-alive
    telephone 	408-555-5454
    Init parameters
    Parameter: 	Value:
    fork 	false
    mappedfile 	false
    logVerbosityLevel 	warning
    com.sun.appserv.jsp.classpath 	/opt/SUNWwbsvr/lib/webserv-rt.jar:
    httpMethods 	GET,HEAD,POST