Class: Auth::DiscordAuthenticator::DiscordStrategy
- Inherits:
-
OmniAuth::Strategies::OAuth2
- Object
- OmniAuth::Strategies::OAuth2
- Auth::DiscordAuthenticator::DiscordStrategy
- Defined in:
- lib/auth/discord_authenticator.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
35 36 37 |
# File 'lib/auth/discord_authenticator.rb', line 35 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/auth/discord_authenticator.rb', line 27 def raw_info @raw_info ||= access_token .get("users/@me") .parsed .merge(guilds: access_token.get("users/@me/guilds").parsed) end |