<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4631503613211074495</id><updated>2011-04-21T15:56:05.730-07:00</updated><category term='Sigle Sign On'/><category term='Spring'/><title type='text'>Chatchai_pi</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pimtun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://pimtun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Chatchai_pi</name><uri>http://www.blogger.com/profile/14863830869873104178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4631503613211074495.post-2732327664149491819</id><published>2007-11-19T23:56:00.000-08:00</published><updated>2007-11-19T23:59:44.823-08:00</updated><title type='text'>รู้สึกดีครับ(โล่ง)</title><content type='html'>วันนี้ พี่เล้ง ทักผมใน msn ด้วย&lt;br /&gt;ผมรุ้สึกดี เพราะตอนแรกนึกว่า แกจะโกธร&lt;br /&gt;แต่ วันนี้พอแกมาทักแล้วบอกว่า search มาเจอ blog ผมแล้วคิดถึง&lt;br /&gt;(แสดงว่าแกไม่โกธร)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4631503613211074495-2732327664149491819?l=pimtun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pimtun.blogspot.com/feeds/2732327664149491819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4631503613211074495&amp;postID=2732327664149491819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/2732327664149491819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/2732327664149491819'/><link rel='alternate' type='text/html' href='http://pimtun.blogspot.com/2007/11/blog-post.html' title='รู้สึกดีครับ(โล่ง)'/><author><name>Chatchai_pi</name><uri>http://www.blogger.com/profile/14863830869873104178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4631503613211074495.post-7416257369012051553</id><published>2007-09-13T04:33:00.000-07:00</published><updated>2007-09-13T05:03:39.965-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spring'/><title type='text'>Why I used Spring?</title><content type='html'>in mind ,I trust  about Spring is pure MVC&lt;br /&gt; if you not believe , can read at &lt;a href="http://forum.springframework.org/showthread.php?t=16553"&gt;Spring MVC Web Framework versus Struts&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4631503613211074495-7416257369012051553?l=pimtun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pimtun.blogspot.com/feeds/7416257369012051553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4631503613211074495&amp;postID=7416257369012051553' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/7416257369012051553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/7416257369012051553'/><link rel='alternate' type='text/html' href='http://pimtun.blogspot.com/2007/09/why-i-used-spring.html' title='Why I used Spring?'/><author><name>Chatchai_pi</name><uri>http://www.blogger.com/profile/14863830869873104178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4631503613211074495.post-7112499039421781545</id><published>2007-09-13T02:25:00.000-07:00</published><updated>2007-09-13T05:04:52.490-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sigle Sign On'/><title type='text'>Central Authentication Service (CAS)</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;strong&gt;What is CAS?&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="left"&gt;CAS is authentication system originally created by Yale University to provide a trusted way for an application to authenticate a user. CAS became a JA-SIG project in December 2004&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;strong&gt;What is Single Sign On?&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p align="left"&gt;Single sign on is a session/user authentication process that allows a user to provide his or her credentials once in order to access multiple applications. The single sign on authenticates the user to access all the applications he or she has been authorized to access. It eliminates future authenticaton requests when the user switches applications during that particular session.&lt;br /&gt;Web Single sign on works strictly with applications accessed with a web browser. The request to access a web resource is intercepted either by a component in the web server, or by the application itself. Unauthenticated users are diverted to an authenticaton service and returned only after a successful authentication.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;strong&gt;CAS 1 Architecture&lt;/strong&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p align="left"&gt;&lt;em&gt;Design and Implementation&lt;/em&gt; &lt;/p&gt;&lt;p align="left"&gt;&lt;a href="http://www.ja-sig.org/products/cas/config/skins/cas/images/cas10.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; width: 320px; text-align: center;" alt="" src="http://www.ja-sig.org/products/cas/config/skins/cas/images/cas10.gif" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Server Deployment&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;I use Java version 1.5.0_09 and Tomcat 5.5.25&lt;/p&gt;&lt;p&gt;&lt;em&gt;Generating a certificate&lt;/em&gt;&lt;/p&gt;&lt;p&gt;%JAVA_HOME%\bin\keytool -delete -alias tomcat -keypass changeit&lt;br /&gt;%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keypass changeit -keyalg RSA&lt;br /&gt;%JAVA_HOME%\bin\keytool -export -alias tomcat -keypass changeit -file %FILE_NAME%&lt;br /&gt;%JAVA_HOME%\bin\keytool -import -file server.crt -keypass changeit -keystore %JAVA_HOME%/jre/lib/security/cacerts&lt;br /&gt;%JAVA_HOME%\bin\keytool -import -file server.crt -keypass changeit&lt;/p&gt;&lt;p&gt;Server (Tomcat)&lt;/p&gt;&lt;p&gt;    affter Cenerating a certificate then config file server.xml in tomcat server&lt;/p&gt;&lt;p&gt;  &lt;connector port="8443" maxhttpheadersize="8192" maxthreads="150" minsparethreads="25" maxsparethreads="75" enablelookups="false" disableuploadtimeout="true" acceptcount="100" scheme="https" secure="true" clientauth="false" sslprotocol="TLS"&gt;&lt;/connector&gt;&lt;/p&gt;&lt;p&gt;Dowloading My cas Server Demo &lt;a href="http://www.mediafire.com/?djzg2dm4dgw"&gt;cas&lt;/a&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Client Integration&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;There are many CAS client libraries to assist in CASifying applications, including CAS-ifying Apps , Gateway , Apache::AuthCAS , Java Client , JSP Client , uPortal Client , CAS Client for Java and acegi CAS Client .&lt;/p&gt;&lt;p&gt;     I use Java CAS Client and Acegi CAS Client for Demo (+_+)&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Java CAS Client&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;     Overview :  The Yale Java CAS client includes Java objects for ticket validation and proxy ticket acquisition, servlets and filters implementing the client portion of the CAS protocol and suitable for "CASifying" a servlet path, a Java object for representing the results of a CAS authentication, and JSP tags for applying CAS authentication. This library is usable for implementing custom CAS functionality and for simply CASifying web applications by application of a filter, and forms the basis for Acegi and uPortal CAS support.&lt;/p&gt;&lt;p&gt;     Downloading : he Java CAS client jar is &lt;a href="http://www.ibiblio.org/maven/cas/jars/"&gt;available from ibiblio&lt;/a&gt;&lt;/p&gt;&lt;p&gt;     Using the Java CAS client : config filter tag in file web.xml&lt;/p&gt;&lt;p&gt;        &lt;filter&gt;&lt;filter-name&gt;CAS Filter&lt;/filter-name&gt; &lt;filter-class&gt;edu.yale.its.tp.cas.client.filter.CASFilter&lt;/filter-class&gt; &lt;init-param&gt; &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.loginUrl&lt;/param-name&gt; &lt;param-value&gt;https://secure.its.yale.edu/cas/login&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.validateUrl&lt;/param-name&gt; &lt;param-value&gt;https://secure.its.yale.edu/cas/serviceValidate&lt;/param-value&gt; &lt;/init-param&gt; &lt;init-param&gt; &lt;param-name&gt;edu.yale.its.tp.cas.client.filter.serverName&lt;/param-name&gt; &lt;param-value&gt;your server name and port (e.g., www.yale.edu:8080)&lt;/param-value&gt; &lt;/init-param&gt; &lt;/filter&gt; &lt;filter-mapping&gt; &lt;filter-name&gt;CAS Filter&lt;/filter-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/filter-mapping&gt;&lt;/p&gt;&lt;p&gt;       Accessing the authenticated username from Java : &lt;/p&gt;&lt;p&gt;session.getAttribute(CASFilter.CAS_FILTER_USER); &lt;/p&gt;&lt;p&gt;session.getAttribute("edu.yale.its.tp.cas.client.filter.user"); &lt;/p&gt;&lt;p&gt;      Downloading My Java CAS client  Demo &lt;a href="http://www.mediafire.com/?fw23pxg1yz1"&gt;casJava&lt;/a&gt;&lt;/p&gt;&lt;p&gt;     2. Acegi CAS Client &lt;/p&gt;&lt;p&gt;     Downloading My Acegi CAS client  Demo &lt;a href="http://www.mediafire.com/?4m33senggyj"&gt;contacts&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Resource Referent&lt;/p&gt;&lt;p&gt;     &lt;a href="http://www.ja-sig.org/products/cas/index.html"&gt;JA-SIG Central Authentication Service&lt;/a&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4631503613211074495-7112499039421781545?l=pimtun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pimtun.blogspot.com/feeds/7112499039421781545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4631503613211074495&amp;postID=7112499039421781545' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/7112499039421781545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/7112499039421781545'/><link rel='alternate' type='text/html' href='http://pimtun.blogspot.com/2007/09/central-authentication-service-cas.html' title='Central Authentication Service (CAS)'/><author><name>Chatchai_pi</name><uri>http://www.blogger.com/profile/14863830869873104178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4631503613211074495.post-6017964560032271379</id><published>2007-09-13T01:20:00.000-07:00</published><updated>2007-09-13T01:25:14.525-07:00</updated><title type='text'>สถาปนา Blog</title><content type='html'>วันนี้เป็นวันแรกครับที่ผม สร้าง blog&lt;br /&gt;จุดประสงค์ของการสร้าง blog ของผม คือ&lt;br /&gt;1 เรือ่งของ technology&lt;br /&gt;2 เรือ่งทั่วไป&lt;br /&gt;3  เรื่องตัวของผมเอง(+_+)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4631503613211074495-6017964560032271379?l=pimtun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pimtun.blogspot.com/feeds/6017964560032271379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4631503613211074495&amp;postID=6017964560032271379' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/6017964560032271379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4631503613211074495/posts/default/6017964560032271379'/><link rel='alternate' type='text/html' href='http://pimtun.blogspot.com/2007/09/blog.html' title='สถาปนา Blog'/><author><name>Chatchai_pi</name><uri>http://www.blogger.com/profile/14863830869873104178</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
