Sha256: 2f4e2c35e42102416d28bc7b9a9d9a501022005f9fc511df371e39c3698e72a1
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Tecnologiedemocratiche < OmniAuth::Strategies::OAuth2 option :name, :tecnologiedemocratiche option :client_options, { site: 'https://tecnologiedemocratiche.herokuapp.com', authorize_path: '/oauth/authorize' } uid do raw_info['id'] end info do { email: raw_info['email'] } end def raw_info @raw_info ||= access_token.get('/api/v1/me.json').parsed end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-tecnologiedemocratiche-1.3.1 | lib/omniauth/strategies/tecnologiedemocratiche.rb |