Sha256: a733b95916c6ec87afc9c0058fc074179cd09472808ed506764a84abe7cc9249
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Tecnologiedemocratiche < OmniAuth::Strategies::OAuth2 option :name, 'Tecnologie Democratiche' 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.0 | lib/omniauth/strategies/tecnologiedemocratiche.rb |