Sha256: dd010f718b54d34fab6a52dab3537922cb67b9d4863cd8505116808f812c6d4d
Contents?: true
Size: 486 Bytes
Versions: 1
Compression:
Stored size: 486 Bytes
Contents
module OmniAuth module Strategies class Norseal < ::OmniAuth::Strategies::OAuth2 option :name, :norseal option :client_options do site: 'http://indentity.norseal.co.uk', authorize_url: '/oauth/authorize' end 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.0 | lib/norseal/omniauth/strategy.rb |