lib/gds-sso/omniauth_strategy.rb in gds-sso-0.4.1 vs lib/gds-sso/omniauth_strategy.rb in gds-sso-0.4.2

- old
+ new

@@ -6,11 +6,11 @@ # # @example Basic Usage # use OmniAuth::Builder :gds, 'API Key', 'Secret Key' class OmniAuth::Strategies::Gds < OmniAuth::Strategies::OAuth2 - + # @param [Rack Application] app standard middleware application parameter # @param [String] api_key the application id as [provided by GDS] # @param [String] secret_key the application secret as [provided by Bitly] def initialize(app, api_key = nil, secret_key = nil, options = {}, &block) client_options = { @@ -31,10 +31,10 @@ @app.call(env) else super end end - + protected def fetch_user_data @access_token.get('/user.json') end