开发者

RPX token URL problem

I am using RPX in my CakePHP project. I have set the toke url like this: http://www.mysite.com/users/login

Here is my login action code.

function login() {
    $this->Ssl->force();        
    $this->layout = 'colorbox';
    $this->pageTitle = "User Login";
}

I have used SSL with the logi开发者_JAVA百科n form. Look above code( $this->Ssl->force(); ). Login using RPX works fine without SSL. I commented $this->Ssl->force(); line, and got RPX working properly. But when I uncommented that Ssl code, it doesn't work properly.

when ssl code was uncommented there, I did this. 1. Selected google to login from RPX badge (in my login form) 2. Entered my google id and password to login and it worked. 3. But I was redirected back to the login form without any session.

Can any one help me please.

Thanks.


The current code redirects the login page from http:// to https:// and therefore it loses the session and other token data. So need to use either http or https before and after redirecting from RPX to my site. Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜