Introducing rack-openid2
Rack OpenID2 wraps ruby-openid2 as middleware. It handles the provider round trip and puts the verified result in the Rack environment. Applications can also use Rack::OpenID::SimpleAuth to protect a route for a fixed identifier; the README includes integration examples for legacy OpenID.
Read the upstream README for installation and usage, or browse the project repository.