class OmniAuth::Strategies::Twitcasting
Authenticate to TwitCasting via OAuth and retrieve basic user information. Usage:
use OmniAuth::Strategies::Twitcasting, 'consumerkey', 'consumersecret'
Constants
- AUTHENTICATION_PARAMETERS
- BASE_URL
Public Instance Methods
callback_phase()
click to toggle source
Hook used after response with code from provider. Used to prep token request from provider.
Calls superclass method
# File lib/omniauth/strategies/twitcasting.rb, line 56 def callback_phase super end
callback_url()
click to toggle source
Over-ride callback_url
definition to maintain compatability with omniauth-oauth2 >= 1.4.0
See: github.com/intridea/omniauth-oauth2/issues/81
# File lib/omniauth/strategies/twitcasting.rb, line 44 def callback_url full_host + script_name + callback_path end
raw_info()
click to toggle source
# File lib/omniauth/strategies/twitcasting.rb, line 36 def raw_info @raw_info ||= access_token.get(BASE_URL + '/verify_credentials').parsed end
request_phase()
click to toggle source
Hook useful for appending parameters into the auth url before sending to provider.
Calls superclass method
# File lib/omniauth/strategies/twitcasting.rb, line 50 def request_phase super end