Hi, Rohit! I am using Cas20ServiceTicketValidator for ticket validation. Now to > integrate CAs with Facebook login do I need to mandatory use > Saml11TicketValidator? > Do we need to do All configuration only in CAS server configuration files > only? no configuration require on client side? If I have integrated CAS > with Spring web app. Any **** > > configuration need to do in application-context.security.xml file? >
In the client application, you just need to use Saml11TicketValidator if you need to pass attributes to it, otherwise none special setup is needed. > ** > > <bean id="serviceRegistryDao" > class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">**** > > <property name="registeredServices">**** > > <list>**** > > <bean class="org.jasig.cas.services.RegisteredServiceImpl">**** > > <property name="id" value="0" />**** > > <property name="name" value="HTTP" />**** > > <property name="description" value="oauth wrapper callback url" /> > **** > > <property name="serviceId" value=" > http://mycasserverwithoauthwrapper/oauth2.0/callbackAuthorize"<http://mycasserverwithoauthwrapper/oauth2.0/callbackAuthorize> > />**** > > </bean> > > <bean class="org.jasig.cas.services.RegisteredServiceImpl">**** > > <property name="id" value="1" />**** > > <property name="name" value="the_key_for_caswrapper1" />**** > > <property name="description" value="the_secret_for_caswrapper1" /> > **** > > <property name="serviceId" > value="http://mycasserver/login"<http://mycasserver/login> > />**** > > </bean> > > For highlighted property what will be value If I want to integrate > facebook login? > The serviceRegistryDao bean configurations are not about the Facebook authentication through OAuth, they are about the integration between CAS server and client applications. Read about how to configure this in https://wiki.jasig.org/display/CASUM/Configuring. Again, you just need to setup something here if you want to pass attributes from server to client. Read about how to configure this in https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1, in the topic named "How to send profile attributes to CAS client applications". > In which configuration file I need to define below bean. > > <bean id="caswrapper1" > class="org.jasig.cas.support.oauth.provider.impl.CasWrapperProvider20">*** > * > > <property name="key" value="the_key_for_caswrapper1" />**** > > <property name="secret" value="the_secret_for_caswrapper1" />**** > > <property name="callbackUrl" > value="http://mycasserver/login"<http://mycasserver/login> > />**** > > <property name="serverUrl" value=" > http://mycasserverwithoauthwrapper/oauth2.0"<http://mycasserverwithoauthwrapper/oauth2.0> > />**** > > </bean> > In applicationContext.xml but I think you just need to setup this if you need to use CAS as an OAuth server. Wish you luck! Frederico Zveiter -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
