Sha256: 708919ce8ce2a190b24ee7e74d0a4b8c41d5ee5acc54aba2e96e0a43664b6544
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
module OmniAuth module Strategies class Norseal < OmniAuth::Strategies::OAuth2 option :name, :norseal option :client_options, { site: "http://identity.norseal.co.uk", authorize_url: "/oauth/authorize" } uid do raw_info['id'] end info do {email: raw_info['email'], name: raw_info['name']} end def raw_info @raw_info ||= access_token.get('/me.json').parsed || {} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
norseal-omniauth-0.1.4 | lib/norseal/omniauth/strategy.rb |