Author: dimuthul
Date: Sun Feb 17 22:26:18 2008
New Revision: 13836

Log:

Adding the minutes guide.



Modified:
   
trunk/solutions/identity/modules/documentation/src/site/xdoc/rp_quickstart.xml

Modified: 
trunk/solutions/identity/modules/documentation/src/site/xdoc/rp_quickstart.xml
==============================================================================
--- 
trunk/solutions/identity/modules/documentation/src/site/xdoc/rp_quickstart.xml  
    (original)
+++ 
trunk/solutions/identity/modules/documentation/src/site/xdoc/rp_quickstart.xml  
    Sun Feb 17 22:26:18 2008
@@ -36,15 +36,26 @@
     <filter>
         <filter-name>TokenValidator</filter-name>
         
<filter-class>org.wso2.solutions.identity.relyingparty.servletfilter.RelyingPartyFilter</filter-class>
-               <init-param>
-                   <param-name> ................ </param-name>
-                   <param-value> ............... </param-value>
-               </init-param>
-               <init-param>
-                       ......................
-               </init-param>
-                       ......................
-                       ......................
+        <init-param>
+           <param-name>Keystore</param-name>
+           <param-value>keys/wso2is.jks</param-value>
+       </init-param>
+        <init-param>
+           <param-name>StorePass</param-name>
+           <param-value>wso2is</param-value>
+       </init-param>
+        <init-param>
+           <param-name>KeyAlias</param-name>
+           <param-value>localhost</param-value>
+       </init-param>
+       <init-param>
+           <param-name>KeyPass</param-name>
+           <param-value>wso2is</param-value>
+       </init-param>
+        <init-param>
+           <param-name>StoreType</param-name>
+           <param-value>JKS</param-value>
+       </init-param>
     </filter>
        
     <filter-mapping>
@@ -87,7 +98,8 @@
 <h3>Step 3 : Add the required jars to your classpath.</h3> 
 
 <p>Ant script available <a href="8888">here</a> will create a directory named 
"required-lib" and copy all the required jar files into it. 
-Download the ant script and copy it to the identity distribution. Then run the 
script by typing ant create-required-lib</p>
+Download the ant script and copy it to the identity distribution. Then run the 
script by typing ant create-required-lib. 
+This will create the required-lib directory with the required libraries</p>
 
 <h3>Step 4 : Obtain the information in the verified token and process</h3>
 
@@ -99,12 +111,27 @@
 On successful verification value of this attribute will be 
 "<strong>success</strong>". Otherwise it will be 
"<strong>failure</strong>".</p>  
 
-<p>Initiate a user session in a web application using these values. <a 
href="8888">Here</a> is such a page.</p> 
+<p>Initiate a user session in a web application using these values.</p>
 
 <p>The ServletRequest will also contain a set of attrbites by the names of 
 the claims (the part of claim URI after the final "/")</p> with their values.
 
-
+<pre><![CDATA[
+       String auth = 
(String)request.getAttribute(TokenVerifierConstants.SERVLET_ATTR_STATE);
+       String welcomeString = "";
+       
+       if(auth != null && TokenVerifierConstants.STATE_SUCCESS.equals(auth)) {
+               welcomeString = "Welcome "
+               String issuerInfo = request.getAttribute("issuerInfo");
+               //retrieving claims made by the user
+               String givenName = 
(String)request.getAttribute(IdentityConstants.CLAIM_GIVEN_NAME);
+               String surname = 
(String)request.getAttribute(IdentityConstants.CLAIM_SURNAME);
+               String email = 
(String)request.getAttribute(IdentityConstants.CLAIM_EMAIL_ADDRESS);
+               welcomeString = welcomeString + givenName + " " + surname + " 
"+email;
+       }else{
+               welcomeString = "Login Failure!!"
+       }
+]]></pre>
 
 
 </body>

_______________________________________________
Identity-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/identity-dev

Reply via email to