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

[eluser]ciscoheat[/eluser]
I'm happy to announce that OpenID just became quite a simple process! A company called JanRain is providing RPX, a great service for us who just wants it to work: https://rpxnow.com/

I made a library for CI, check it out if you like! (with some code examples)

http://codeigniter.com/wiki/OpenIDRpx/
#2

[eluser]longlostcousin[/eluser]
this is pretty neat. got it working on a development site easily. thanks! for certain projects this could be useful and i may just abandon some auth systems and build stuff around this.
#3

[eluser]ciscoheat[/eluser]
[quote author="longlostcousin" date="1250120555"]for certain projects this could be useful and i may just abandon some auth systems and build stuff around this.[/quote]

Definitely, It's great to avoid a user account system. It seems that Google, Hotmail, Facebook and Myspace covers 98% of all users. Good enough for me. Smile

Right now I'm using CI's session cookie (encrypted) to store the identifier. Any ideas if there are better ways to do the authorization when the user is confirmed?
#4

[eluser]itibook[/eluser]
Hi ciscoheat,

this looks very good... I am going to give it a try and let you know how it goes...

Luca
#5

[eluser]ChazUK[/eluser]
Hey ciscoheat,

I've only just started learning how to use CI and OpenID with RPX so I was wondering if you could show us a detailed example of your script in action. I'm quite unsure of how to configure it properly within the CI Platform.

Thanks
#6

[eluser]adamp1[/eluser]
I'm using this for a new review site. I have to say when I saw this it made my day.

I am hoping to interoperate it as well into the next version of BackendPro if anyone here is interested.
#7

[eluser]itibook[/eluser]
just for the record I tried it out and it worked fine, really nice.

I had to postpone the integration due to other priorities

I haven't used backendpro as I am still learning CI, but it would totally make sense to have this integrated there...

ciao

Luca
#8

[eluser]ChazUK[/eluser]
Can anyone give me an overview of how to get it working?

I don't understand where to put the code on the wiki page.
#9

[eluser]itibook[/eluser]
Hi you can simply download the zip file from the wiki and install the files (there are 2) in the respective directories (one goes under applica->config, the other under application->libraries)..

you cna then create a controller to handle the information sent from RPX to your server.

Something like this...


Code:
<?php

    class Rpx extends Controller{
        
        function Rpx(){
        // load controller parent
        parent::Controller();
        $this->load->library('openidrpx');
        
        }


        function verify()
        {
                  
            if($token = $this->input->post('token'))
            {
                $rpx_data = $this->openidrpx->AuthInfo($token);
                
                //Do something

        }

    }


hope it helps

ciao

Luca
#10

[eluser]ChazUK[/eluser]
Hmmmm, So what do I have to put in the view? And that to me looks like it's just loading the library, and then if you go to /Rpx/verify it will check for the token.

Maybe I'm just being dumb.




Theme © iAndrew 2016 - Forum software by © MyBB