Sha256: efd3e3a49ab23153d82edaebc890edf84ee443ac10918a3810ada120b6a4d75a
Contents?: true
Size: 482 Bytes
Versions: 1
Compression:
Stored size: 482 Bytes
Contents
module OmniAuth module Strategies class Norseal < OmniAuth::Strategies::OAuth2 option :name, :norseal option :client_options, { site: "http://indentity.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.2 | lib/norseal/omniauth/strategy.rb |