Hi, The *OAuth10LoginController* just needs to be defined in the * cas-servlet.xml*. The appropriate url (direct to the provider or to this controller) is computed internally in the *OAuthAction* class. Note that this is no more necessary with CAS server 4.0. Best regards, Jérôme
2013/8/27 Robert von Bismarck <[email protected]> > Hi, > > > Thanks for the follow-up, I'm actually using 1.2.0 of scribe-up as per > the wiki, I will redeploy the instances using 1.3.1 and see if that > works better, I will also up the loglevel for scribe-up in log4j > config. > > As for the link, should I reference the oauth10logincontroller > somewhere in the applicationContext.xml, like in LoginUrl ? > > Currently I have : > > <bean id="oauthConfig" > class="org.jasig.cas.support.oauth.OAuthConfiguration"> > <property name="loginUrl" value="https://cas.test/cas/login" /> > <property name="providers"> > <list> > <ref bean="linkedin" /> > </list> > </property> > </bean> > > Cheers, > > Robert > > On 27 August 2013 11:02, Jérôme LELEU <[email protected]> wrote: > > Hi, > > > > You're right about the behaviour : the link to "Authenticate at > LinkedIn" is > > not directly pointed to LinkedIn, it's an internal link which requires > the > > oauth10logincontroller. And also about the typo : I just fixed the wiki. > > > > There is a problem with the LinkedIn support. I'm not sure if I fixed it > in > > scribe-up 1.3.1 (CAS server uses scribe-up 1.2.0). If no, I think I can > > figure something out for that, maybe a 1.3.2 version ? > > At least, it's fixed for the new version 4.0 of the CAS server. > > > > Best regards, > > Jérôme > > > > > > > > 2013/8/26 Robert von Bismarck <[email protected]> > >> > >> Hi list, > >> > >> I am currently trying to include linkedin via OAuth in my CAS setup. > >> > >> I followed the doc at > >> > >> > https://wiki.jasig.org/display/CASUM/Configuration+for+the+OAuth+client+support+in+CAS+server+version+%3E%3D+3.5.1 > >> and I get an empty "Authenticate with Linkedin" URL in my login page. > >> > >> As I'm not really a Java EE hacker, from the docs and code, I assume > >> that this link gets auto-generated to request a token from LinkedIn > >> using the secret and key we got from LinkedIn in > >> ApplicationContext.xml, right ? > >> > >> Secondly, from the code, I made the assumption that LinkedIn is > >> automagically setup as OAuth 1.0 and it will require the > >> oauth10logincontroller in cas-servlet.xml. > >> > >> During config I had to change one thing in the linkedin provider bean > >> (probably a typo in the CAS wiki) > >> > >> <bean id="linkedin" class="org.scribe.up.impl.LinkedInProvider"> > >> > >> To : > >> > >> <bean id="linkedin" > class="org.scribe.up.provider.impl.LinkedInProvider"> > >> > >> > >> Details of the setup : > >> > >> - CAS 3.5.2 as maven overlay > >> - scribe-up 1.2.0 as per the docs > >> - Tomcat 7.0.42 container > >> - Authenticationprovider is LDAP and works fine > >> - inmemory service registry for testing, but I will probably use JSON > >> service registry for production > >> - ehcache ticket registry shared between cluster nodes > >> - apache mod_proxy_ajp load-balancer on one node for testing, will use > >> hardware load-balancer for SSL offloading in production > >> > >> Thanks for any hints as currently I'm a bit lost how to debug this. > >> > >> Robert > >> > >> -- > >> 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 > > > > > > -- > > 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 > > -- > 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 > > -- 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
