Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You'll need to modify the WEB-INF/spring-configuration/argumentExtractorsConfiguration.xml, and add the following:
(note: the section  p:httpClient-ref="httpClient"   is only for 3.4 and up, and should be removed for 3.3.x)

No Format
<bean   id="googleAccountsArgumentExtractor" 	class="org.jasig.cas.web.support.GoogleAccountsArgumentExtractor"
	      p:privateKey-ref="privateKeyFactoryBean"
      	p:publicKey-ref="publicKeyFactoryBean"
        p:httpClient-ref="httpClient" />

...

You'll need to configure the keys so they can be loaded from the files. You do that as follows:

No Format
<bean 	id="privateKeyFactoryBean" 	class="org.jasig.cas.util.PrivateKeyFactoryBean"
	
      p:location="classpath:private.p8"
 	     p:algorithm="RSA" />

<bean 	id="publicKeyFactoryBean"
	class="org.jasig.cas.util.PublicKeyFactoryBean"
	      p:location="classpath:public.key"
     	 p:algorithm="RSA" />

Replace the public.key and private.key with the names of your key files. If they are not available on the classpath, change the location to point to the location of the keys. If you are using DSA instead of RSA, change the algorithm as appropriate.

...