Re: [cas-user] Oauth2.0 not redirecting back to app

2016-10-05 Thread Xavier Rodríguez
¡Thanks Jérôme and Marina for your responses! The problems is in theme. As says Marina I put de cas.js and it works perfect!!! The redirect in the file not found causes the second call. Thanks a lot++ Best regards, - Xavier - El dimecres, 5 octubre de 2016 14:50:52 UTC+2, Marina Batet

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-10-05 Thread Marina Batet
Hi Jérôme, Thanks for your answer! Yes, I tested it with firebug and there are two calls to the /cas/login. The first with the service url and the second without. The thing is, I have a custom theme defined for my service. If I use the default theme, then I have just one call and everything wo

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-10-05 Thread Marina Batet
Hi Jérôme and everyone, This is happening to me in CAS 4.2.3. I'm trying it in localhost, with two CAS servers installed, one acting as the oauth client (/cas) an the other as the oauth server (/cas-pac4j-oauth-server-demo). And a test app (/test-client-app) that it's acting as the client of

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-10-05 Thread Jérôme LELEU
Hi, Indeed, the double call to prepareForLoginPage is the culprit. Is there any resource on your login page somehow calling the /login URL again? Thanks. Best regards, Jérôme 2016-10-05 13:28 GMT+02:00 Marina Batet : > Hi Jérôme and everyone, > > This is happening to me in CAS 4.2.3. > > I'm t

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-10-05 Thread Jérôme LELEU
Hi, In the ClientAction, the service has been saved: 2016-10-03 16:32:17,094 DEBUG [org.jasig.cas.support.pac4j.web.flow.ClientAction] - save service: https://localhost:8445/dipta-cas-client-test/j_spring_cas_security_check But, indeed, the service is not retrieved during the authentication (thu

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-09-30 Thread Jérôme LELEU
Hi, Can you post your logs (in DEBUG on org.jasig) to see if it properly goes through the OAuth controller? Thanks. Best regards, Jérôme 2016-09-30 10:21 GMT+02:00 Jens Hausherr : > Hi, > > I am using 4.2.6 and there are no errors in the logs. > > The audit tells me that the authentication was

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-09-30 Thread Jens Hausherr
Hi, I am using 4.2.6 and there are no errors in the logs. The audit tells me that the authentication was successful and that the TGT has been created. I am just not redirected back to http(s)://localhost:3000/callback?code=... Here is the initial URL I redirect the browser to: https://localhost

Re: [cas-user] Oauth2.0 not redirecting back to app

2016-09-29 Thread Jérôme LELEU
Hi, Which CAS version do you use? Any error in your logs? Thanks. Best regards, Jérôme 2016-09-29 16:28 GMT+02:00 Jens Hausherr : > Hi, > > I am having some trouble getting my CAS Oauth2.0 Server to work. > > I have set up everything as documented and I get to the login page on CAS. > After su

[cas-user] Oauth2.0 not redirecting back to app

2016-09-29 Thread Jens Hausherr
Hi, I am having some trouble getting my CAS Oauth2.0 Server to work. I have set up everything as documented and I get to the login page on CAS. After succesful login I am 'stranded' at the web login success page. OAuth 2.0 should redirect the browser back to callback but does not do it. I susp