Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to build a openid provider with ruby on rails

I tried a few searches about openid utilization in ruby on rails. However, although there appears a set of options, such as omniauth, authlogic, and so on, those gems are normally used for building a site which accepts openid authentication. In other words, they are for openid consumer setup.

I want to build my very own openid server as well. As suggested here in OpenId site I found something like Masquerade and local-openid, unfortunately, they are not very active projects with very few downloads.

Is there any other facilities to be recommended for building a self-owned openid provider server?

Thanks a lot !!

Cheers,

Ye

like image 511
Ye Huang Avatar asked Feb 14 '12 14:02

Ye Huang


People also ask

Is OpenID deprecated?

Yes, OpenID is an obsolete standard that is no longer supported by the OpenID Foundation.

What is an OpenID provider?

An identity provider, or OpenID provider (OP) is a service that specializes in registering OpenID URLs or XRIs. OpenID enables an end user to communicate with a relying party.

Is OpenID the same as OAuth?

Simply put, OpenID is used for authentication while OAuth is used for authorization. OpenID was created for federated authentication, meaning that it lets a third-party application authenticate users for you using accounts that you already have.


1 Answers

Although I didn't try any Ruby or Rails based OpenID provider software for some years I think you should give masquerade another try. To me it seems there is at least a bit activity there and at least they seemed to have made the jump to Rails 3.x.x already (which is already more than some very popular Rails based free software projects have to offer. I'm looking at you, Redmine).

Additionally the main author of masquerade seems to be currently working on a successor project named masq which seems to be intended as a mountable engine OpenID provider. With this finished, you could easily enhance any existing Rails >= 3.1.0 application to act as an OpenID provider. I have no idea how stable this project is already, though.

like image 134
aef Avatar answered Oct 12 '22 22:10

aef