Class: OmniAuth::Strategies::Gds

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

Instance Method Summary collapse

Instance Method Details

#userObject



25
26
27
# File 'lib/omniauth/strategies/gds.rb', line 25

def user
  @user ||= JSON.parse(access_token.get("/user.json?client_id=#{CGI.escape(options.client_id)}").body).fetch("user")
end