Sha256: d214d6bdfab294149d1f5b26c0e197715761852673fa06198f5b4dbf0223de74
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
require 'omniauth-oauth2' module OmniAuth module Strategies class Appnet < OmniAuth::Strategies::OAuth2 option :name, 'appnet' option :client_options, { :site => 'https://alpha-api.app.net', :authorize_url => 'https://alpha.app.net/oauth/authenticate', :token_url => 'https://alpha.app.net/oauth/access_token' } uid { raw_info['id'] } extra do {:raw_info => raw_info} end def raw_info @raw_info ||= access_token.get('stream/0/users/me').parsed end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-appnet-0.0.1 | lib/omniauth/strategies/appnet.rb |