class OmniAuth::Strategies::IVLE
Public Instance Methods
profile()
click to toggle source
fetch user profile
# File lib/omniauth/strategies/ivle.rb, line 35 def profile return @profile unless @profile.nil? token = request.params["token"] profile_url = "#{options.profile_url}?APIKey=#{options.api_key}&AuthToken=#{token}" conn = Faraday.new(url: profile_url) response = conn.get json = MultiJson.decode(response.body) @profile = json["Results"][0] end
request_phase()
click to toggle source
# File lib/omniauth/strategies/ivle.rb, line 14 def request_phase redirect "#{options.login_url}?apikey=#{options.api_key}&url=#{callback_url}" end