Class: OmniAuth::Strategies::SlackOpenid

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/slack_openid.rb

Defined Under Namespace

Classes: INFO_DATA

Constant Summary collapse

AUTH_OPTIONS =
%i[scope user_scope team team_domain].freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.generate_uid(team_id, user_id) ⇒ Object



32
33
34
# File 'lib/omniauth/strategies/slack_openid.rb', line 32

def self.generate_uid(team_id, user_id)
  "#{team_id}-#{user_id}"
end

Instance Method Details

#callback_urlObject



69
70
71
# File 'lib/omniauth/strategies/slack_openid.rb', line 69

def callback_url
  options.redirect_uri || (full_host + script_name + callback_path)
end

#raw_infoObject



73
74
75
# File 'lib/omniauth/strategies/slack_openid.rb', line 73

def raw_info
  @raw_info ||= access_token.get("/api/openid.connect.userInfo").parsed
end