Created
September 17, 2009 05:18
-
-
Save baroquebobcat/188358 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openid_provider_sinatra' | |
use Rack::Auth::Basic do |username,password| | |
'secret' == password | |
end | |
run OpenIDProvider.new nil, :store=>OpenID::Store::Filesystem.new(Dir.pwd + '/openid-store'), | |
:user=>Proc.new {|env| | |
login=env['REMOTE_USER'] | |
return nil unless login | |
OpenStruct.new :login=>login,:url=>"http://id.example.com/#{login}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment