Class: OmniAuth::Strategies::PublishingPlatform
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::PublishingPlatform
- Defined in:
- lib/omniauth/strategies/publishing_platform.rb
Instance Method Summary collapse
Instance Method Details
#user ⇒ Object
26 27 28 |
# File 'lib/omniauth/strategies/publishing_platform.rb', line 26 def user @user ||= JSON.parse(access_token.get("/user.json?client_id=#{CGI.escape(.client_id)}").body).fetch("user") end |