Welcome Guest, Not a member yet? Register   Sign In
Finally, OpenID made simple!
#11

[eluser]itibook[/eluser]
Hi,

RPX will send a token to the rpx/verify url and your controller will check that and from there you can then authenticate the user into your application.

you need to think of this as a second authentication method. So it follows the same principle, the only difference is that the user info comes into the rpx/verify (or whatever you want to call it) and you take it from there...

if "authentication" doesn't sound familiar have a look around for some tutorials about basic authentication with codeigniter.

ciao

Luca


I had done something like this in the controller. Take this just as a sample... far from being something usable... I was just trying out and I am still learning.




Code:
if($token = $this->input->post('token'))
            {
                $rpx_data = $this->openidrpx->AuthInfo($token);
                                
                
                $identifier = $this->openidrpx->Identifier($rpx_data);
                


                if($identifier)
                {                

                $data['page_title'] = WEBSITE_TITLE;            
                $data['login_result'] = 'LOGGED IN';

                
                $data['page'] = 'login_result'; // pass the actual view to use as a parameter                
                $this->load->view('layout',$data);

                } else {

                $data['page_title'] = WEBSITE_TITLE;            
                $data['login_result'] = 'LOGGED IN FAILURE';
                $data['page'] = 'login_result'; // pass the actual view to use as a parameter
                $this->load->view('layout',$data);
                    
                    
                }


Messages In This Thread
Finally, OpenID made simple! - by El Forum - 08-11-2009, 09:36 PM
Finally, OpenID made simple! - by El Forum - 08-12-2009, 12:42 PM
Finally, OpenID made simple! - by El Forum - 08-13-2009, 05:07 AM
Finally, OpenID made simple! - by El Forum - 08-27-2009, 05:14 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 07:35 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 08:20 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 08:58 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 09:14 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 09:28 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 09:48 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 11:59 AM
Finally, OpenID made simple! - by El Forum - 10-05-2009, 12:54 PM
Finally, OpenID made simple! - by El Forum - 10-07-2009, 04:02 AM
Finally, OpenID made simple! - by El Forum - 10-07-2009, 04:17 AM
Finally, OpenID made simple! - by El Forum - 10-08-2009, 03:57 AM
Finally, OpenID made simple! - by El Forum - 10-08-2009, 05:16 AM
Finally, OpenID made simple! - by El Forum - 10-18-2009, 10:43 AM
Finally, OpenID made simple! - by El Forum - 10-18-2009, 01:24 PM
Finally, OpenID made simple! - by El Forum - 10-20-2009, 02:12 AM
Finally, OpenID made simple! - by El Forum - 10-21-2009, 01:41 AM
Finally, OpenID made simple! - by El Forum - 12-01-2009, 03:38 PM
Finally, OpenID made simple! - by El Forum - 12-02-2009, 10:37 AM
Finally, OpenID made simple! - by El Forum - 12-23-2009, 04:07 PM
Finally, OpenID made simple! - by El Forum - 12-28-2009, 04:46 AM
Finally, OpenID made simple! - by El Forum - 12-28-2009, 01:11 PM
Finally, OpenID made simple! - by El Forum - 02-05-2010, 10:02 PM
Finally, OpenID made simple! - by El Forum - 02-18-2010, 06:56 AM
Finally, OpenID made simple! - by El Forum - 03-23-2010, 06:28 PM
Finally, OpenID made simple! - by El Forum - 03-24-2010, 05:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB