Changeset 319

Show
Ignore:
Timestamp:
10/07/07 10:56:11 (1 year ago)
Author:
paulhethmon
Message:

changes to support multiple web identities

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • AcmeIdp/trunk/web/auth-secure.jsp

    r290 r319  
    9393    rsp.setAuthnRequest(auth); 
    9494    rsp.setLoginId(idpLoginId); 
    95     String issuerName = (request.isSecure()==true?"https://":"http://") + request.getServerName(); // + ":" + request.getServerPort() + "/recv-saml.jsp"; 
     95    String issuerName = (request.isSecure()==true?"https://":"http://") + request.getServerName(); 
    9696    rsp.setIssuerName( issuerName ); 
    9797    rsp.setPrivateKeyCache(pkCache); 
     
    110110  <head> 
    111111    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    112     <title>ACME Idp Login</title> 
     112    <title><%out.print(pageTitle);%> Login</title> 
    113113    <link rel="stylesheet" type="text/css" href="main.css"> 
    114114  </head> 
     
    138138  <head> 
    139139    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    140     <title>ACME Idp Login</title> 
     140    <title><%out.print(pageTitle);%> Login</title> 
    141141    <link rel="stylesheet" type="text/css" href="main.css"> 
    142142  </head> 
    143143  <body> 
    144     <%@include file="header.html"%
     144<jsp:include page="<%=headerPath%>" /
    145145     
    146     <h1>Welcome to ACME Idp, you are now logged in.</h1> 
     146    <h1>Welcome to <%out.print(pageTitle);%>, you are now logged in.</h1> 
    147147    <table> 
    148148      <tr><td><a href="visit-acme-mls.jsp">Visit ACME MLS</a></td></tr> 
  • AcmeIdp/trunk/web/auth-user.jsp

    r290 r319  
    9393    <head> 
    9494        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    95         <title>ACME Idp Login</title> 
     95        <title><%out.print(pageTitle);%> Login</title> 
    9696        <link rel="stylesheet" type="text/css" href="main.css"> 
    9797    </head> 
     
    121121    <head> 
    122122        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    123         <title>ACME Idp Login</title> 
     123        <title><%out.print(pageTitle);%> Login</title> 
    124124        <link rel="stylesheet" type="text/css" href="main.css"> 
    125125    </head> 
    126126    <body> 
    127 <%@include file="header.html"%
     127<jsp:include page="<%=headerPath%>" /
    128128 
    129     <h1>Welcome to ACME Idp, you are now logged in.</h1> 
     129    <h1>Welcome to <%out.print(pageTitle);%>, you are now logged in.</h1> 
    130130    <table> 
    131131      <tr><td><a href="visit-acme-mls.jsp">Visit ACME MLS</a></td></tr> 
  • AcmeIdp/trunk/web/footer.html

    r58 r319  
    1 <p class="note">Copyright Clareity Security, LLC</p> 
     1<p class="note"><a href="copyright.html">Copyright (C) 2007 National Association of REALTORS(R)</a></p> 
  • AcmeIdp/trunk/web/include.jsp

    r259 r319  
    99  _privatekeyfile = "privatekeyfile"; 
    1010 
     11  String 
     12    webhost, 
     13    pageTitle = "ACME IdP", 
     14    headerPath = "header/www.acmeidp.com.header.html", 
     15    providerName = "ACMEIdP"; 
     16  // Determine our identity and set some values based on it. 
     17  webhost = request.getServerName(); 
     18  webhost = webhost.toLowerCase(); 
     19   
     20  if (webhost.equals("local.acmeidp.com") == true) { 
     21    pageTitle = "ACME IdP"; 
     22    headerPath = "header/local.acmeidp.com.header.html"; 
     23    providerName = "ACMEIdP"; 
     24  } else if (webhost.equals("www.acmeidp.com") == true) { 
     25    pageTitle = "ACME IdP"; 
     26    headerPath = "header/www.acmeidp.com.header.html"; 
     27    providerName = "ACMEIdP"; 
     28  } else if (webhost.equals("idp.acmeidp.com") == true) { 
     29    pageTitle = "ACME IdP"; 
     30    headerPath = "header/idp.acmeidp.com.header.html"; 
     31    providerName = "ACMEIdP"; 
     32  } else if (webhost.equals("idp.acmemls.com") == true) { 
     33    pageTitle = "ACME MLS IdP"; 
     34    headerPath = "header/idp.acmemls.com.header.html"; 
     35    providerName = "ACMEMLSIdP"; 
     36  } else if (webhost.equals("idp.acmesp.com") == true) { 
     37    pageTitle = "ACME SP IdP"; 
     38    headerPath = "header/idp.acmesp.com.header.html"; 
     39    providerName = "ACMESPIdP"; 
     40  } else if (webhost.equals("idp.hethmon.com") == true) { 
     41    pageTitle = "Hethmon.com IdP"; 
     42    headerPath = "header/idp.hethmon.com.header.html"; 
     43    providerName = "HethmonComIdP"; 
     44  } else if (webhost.equals("idp.hethmon.us") == true) { 
     45    pageTitle = "Hethmon.us IdP"; 
     46    headerPath = "header/idp.hethmon.us.header.html"; 
     47    providerName = "HethmonUsIdP"; 
     48  } 
    1149 
    1250 
  • AcmeIdp/trunk/web/index.jsp

    r185 r319  
    2929    <head> 
    3030        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    31         <title>ACME Idp</title> 
     31        <title><%out.print(pageTitle);%></title> 
    3232        <link rel="stylesheet" type="text/css" href="main.css"> 
    3333    </head> 
    3434    <body> 
    35 <%@include file="header.html"%
     35<jsp:include page="<%=headerPath%>" /
    3636 
    37     <h1>ACME Idp Login Page</h1> 
     37    <h1><%out.print(pageTitle);%> Login Page</h1> 
    3838     
    3939    <form name="login" method="POST" action="login.jsp"> 
  • AcmeIdp/trunk/web/keys.jsp

    r287 r319  
    2929    </head> 
    3030    <body> 
    31 <%@include file="header.html"%
     31<jsp:include page="<%=headerPath%>" /
    3232 
    3333    <h1>How To Create Self-Signed Public/Private Keys</h1> 
  • AcmeIdp/trunk/web/logout.jsp

    r185 r319  
    2626  <head> 
    2727    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    28     <title>ACME Idp Logout</title> 
     28    <title><%out.print(pageTitle);%> Logout</title> 
    2929    <link rel="stylesheet" type="text/css" href="main.css"> 
    3030  </head> 
    3131  <body> 
    32 <%@include file="header.html"%
     32<jsp:include page="<%=headerPath%>" /
    3333<% 
    3434    session.setAttribute(_credentials, null); 
     
    3838  <table class="section" cellspacing="5" cellpadding="5" align="center" width="60%"> 
    3939    <tr> 
    40       <td align="center">You have been logged out of ACME Idp</td> 
     40      <td align="center">You have been logged out of <%out.print(pageTitle);%></td> 
    4141    </tr> 
    4242  </table> 
    4343   
    4444    <table> 
    45       <tr><td><a href="index.jsp">Login into ACME Idp</a></td></tr> 
     45      <tr><td><a href="index.jsp">Login into <%out.print(pageTitle);%></a></td></tr> 
    4646    </table> 
    4747     
  • AcmeIdp/trunk/web/recv-authnrequest-direct.jsp

    r185 r319  
    8585    <head> 
    8686        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    87         <title>ACME Idp AuthnRequest</title> 
     87        <title><%out.print(pageTitle);%> AuthnRequest</title> 
    8888        <link rel="stylesheet" type="text/css" href="main.css"> 
    8989    </head> 
    9090    <body>  
    91 <%@include file="header.html"%
     91<jsp:include page="<%=headerPath%>" /
    9292 
    93  
    94  
    95     <h1>ACME Idp AuthnRequest Received</h1> 
     93    <h1><%out.print(pageTitle);%> AuthnRequest Received</h1> 
    9694    <table> 
    9795      <tr><td><% out.println( messageXML );%></td></tr> 
    9896    </table> 
    9997     
    100     <h1>ACME Idp Login Page</h1> 
     98    <h1><%out.print(pageTitle);%> Login Page</h1> 
    10199     
    102100    <form name="login" method="POST" action="login.jsp"> 
  • AcmeIdp/trunk/web/recv-authnrequest.jsp

    r279 r319  
    6161    <head> 
    6262        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    63         <title>ACME Idp AuthnRequest</title> 
     63        <title><%out.print(pageTitle);%> AuthnRequest</title> 
    6464        <link rel="stylesheet" type="text/css" href="main.css"> 
    6565    </head> 
    6666    <body>  
    67 <%@include file="header.html"%
     67<jsp:include page="<%=headerPath%>" /
    6868 
    69  
    70  
    71     <h1>ACME Idp AuthnRequest Received</h1> 
     69    <h1><%out.print(pageTitle);%> AuthnRequest Received</h1> 
    7270    <table> 
    7371      <tr><td><% out.println( messageXML );%></td></tr> 
    7472    </table> 
    7573     
    76     <h1>ACME Idp Login Page</h1> 
     74    <h1><%out.print(pageTitle);%> Login Page</h1> 
    7775     
    7876    <form name="login" method="POST" action="<% out.print( action );%>">