Method: SparkApi::Authentication::OAuth2#authenticate

Defined in:
lib/spark_api/authentication/oauth2.rb

#authenticateObject



35
36
37
38
39
# File 'lib/spark_api/authentication/oauth2.rb', line 35

def authenticate
  granter = OAuth2Impl::GrantTypeBase.create(@client, @provider, session)
  self.session = granter.authenticate
  session
end