class OmniAuth::Strategies::RedmineOauth2

Constants

USER_INFO_PATH

Public Instance Methods

email() click to toggle source
# File lib/omniauth/strategies/redmine_oauth2.rb, line 34
def email
  raw_info['mail']
end
raw_info() click to toggle source
# File lib/omniauth/strategies/redmine_oauth2.rb, line 42
def raw_info
  access_token.options[:mode] = :header
  @raw_info ||= access_token.get(USER_INFO_PATH).parsed['user']
end
scope() click to toggle source
# File lib/omniauth/strategies/redmine_oauth2.rb, line 38
def scope
  access_token['scope']
end

Private Instance Methods

callback_url() click to toggle source

github.com/omniauth/omniauth-oauth2/issues/81

# File lib/omniauth/strategies/redmine_oauth2.rb, line 50
def callback_url
  full_host + script_name + callback_path
end