Sha256: fc1d55aad19f1824b6f4724866602d55b35c32c477006322660058c0ab0e410b
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Procore < OmniAuth::Strategies::OAuth2 option :name, 'procore' option :client_options, site: 'https://app.procore.com', authorize_path: '/oauth/authorize' uid do raw_info['id'] end info do { email: raw_info['login'], procore_id: raw_info['id'] } end def raw_info @raw_info ||= access_token.get('/vapid/me').parsed end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-procore-0.4.1 | lib/omniauth/strategies/procore.rb |
omniauth-procore-0.4.0 | lib/omniauth/strategies/procore.rb |