Skip to content

Instantly share code, notes, and snippets.

View inspire22's full-sized avatar

Kevin Watt inspire22

View GitHub Profile
require 'openid'
require 'openid/consumer'
require "openid/store/filesystem"
require 'openid/extensions/sreg'
class LoginController < ApplicationController
def create
response = openid_consumer.begin(params[:openid_url])
sregreq = ::OpenID::SReg::Request.new
sregreq.request_fields(["email"], true)