Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Merb Plugin for Google and Google Apps Federated Login

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 pkg
Octocat-spinner-32 spec
Octocat-spinner-32 test
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO
README
gafl
====

A plugin for the Merb framework that provides Google and Google App Federated Login

Needs:-
1. ruby-openid
2. merb-auth-more

Steps:-
1. Download and install the gem

    sudo rake install

2. Add it to the dependencies.rb file

    dependency "gafl"

3. In the controllers (app/controllers/exception.rb)

      def unauthenticated
	@openid_url = Merb::Authentication::Strategies::GOpenID.gafl_url
	render
      end

4. In the views (app/views/exceptions/unauthenticated.html.haml)

    %form{:action => url(:openid)}
      %input{:name=>'openid_url', :value => @openid_url, :type=>'hidden'}
      %input{:type => 'submit',:name => 'login', :value=>'Log in using Google'}

Something went wrong with that request. Please try again.