Camping OpenID Consumer Icon

Camping OpenID Consumer

Here’s a snippet of code that gives you instant OpenID Authentication.

Camping OpenID ConsumerOverview

Here’s a Snippet of code that gives you instant OpenID Authentication. It will set @state.identity to the user’s OpenID URL once they’ve logged in, so you’ll need to be using some kind of camping session handler. You’ll also need to install the OpenID gem from JanRain by running “gem install openid” in a terminal. It’s lovely for your user’s as they can login with existing Yahoo, AOL, LiveJournal, etc accounts, not needing to register for your app, and you get to skip writing all that annoying account creation & management code and get straight down to business!
Drop this code in your controllers, and make a form somewhere with an input by the name ‘openid_identifier’ with it’s action pointing to /login in your app. That’s all there is to it! To check if the user is logged in from various controllers in your camping app, do something like ‘return redirect(‘/index’) unless @state.identity’. The .identity property contains a unique URL which you use the same way you’d use a username normally. To add a log out Link to your app, you just need to make a controller that does @state.delete(’identity’) :)

NEW

Fixed some bugs.

Camping OpenID ConsumerInformation

Version
N/A
Date
09.28.10
License
Free
Language
English
File Size
N/A
Category
SubCategory
Operating Systems
Windows ,Linux,Mac OS,BSD,Solaris
System Requirements
No additional system requirements.
URL Shorteners Icon
These are some funky great little functions to pop in your helper module .
Free
More
MP4Info Icon
MP4Info is a library providing read (and, someday, write) access to MP4 tags.
Free
GoogleService Icon
GoogleService is a library to use Google data API easily.
Lots of Array methods Icon
This is a script for ruby.
Free
Isefad roguelike game Icon
This is an extensible roguelike game, written in Ruby.
Making if and unless consistent? Icon
I've been thinking why some Ruby constructions are inconsistent.
Free
PNG-24 Alpha support for IE Icon
Get alpha channel on web, that's possible with PNG-24 images and this trick.
Free
Real Target Icon
Find the real target of a symbolic link.
Free
Calculating ezmlm-hash of an email address Icon
Calculates the ezmlm-hash of an email address for use with mysql.
Free
More