Sha256: 801f345d1ae9e49641cc4f3ef327e7a0b438cebde7a47656f063c562b5a56ec8
Contents?: true
Size: 550 Bytes
Versions: 2
Compression:
Stored size: 550 Bytes
Contents
module OmniAuth module Strategies class Doorkeeper < OmniAuth::Strategies::OAuth2 option :name, :doorkeeper option :client_options, site: 'http://core.dev', authorize_path: '/oauth/authorize' uid do raw_info["id"] end info do {dossier_id: raw_info['dossier_id'], username: raw_info['username'], role: raw_info['role']} end def raw_info @raw_info ||= access_token.get('/api/v1/me.json').parsed['me'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roqua-core-api-0.0.22 | lib/roqua/omniauth/strategies/doorkeeper.rb |
roqua-core-api-0.0.21 | lib/roqua/omniauth/strategies/doorkeeper.rb |