Hello,

I went a little further with my problem. On my portal, I excluded all my API 
pages from the login check using the proxy. Instead, before each call of an API 
function, i do a check as a client. It's working like a charm.

The problem happens on my application. There are no pages that "works" without 
being authenticated. So at my first connection i obviously initialize the 
application as a client ( with phpCAS::client() ). I can chech the user 
authenticated anywhere by simply using phpCAS::getUser(). The problem is that i 
would like to initialize a proxy when i click on a certain button on the 
application, authenticated the user and make a call to the API i talked just 
before.
If I do everything in the function called on the click of the button, when i'm 
using the phpCAS::forceAuthenticate(), the function is exited and i get 
redirected to my index page.

However if i do the exact same protocol on my index page (the one that 
initialize the application and is being called everytime), i manage to get 
authenticated as a proxy and when i click on the button, i go further than the 
forceAuthenticate() and am able to do the call on the API.

It's not really a good solution to do so, can somebody help me go through this 
wall please ?
-- 
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

Reply via email to