Class: SparkApi::Authentication::OpenId

Inherits:
OpenIdOAuth2Hybrid show all
Defined in:
lib/spark_api/authentication/oauth2.rb

Instance Attribute Summary

Attributes inherited from BaseAuth

#session

Instance Method Summary collapse

Methods inherited from OAuth2

#initialize, #logout, #session, #session=, #sparkbar_token

Methods inherited from BaseAuth

#authenticated?, #build_url_parameters, #initialize, #logout

Constructor Details

This class inherits a constructor from SparkApi::Authentication::OAuth2

Instance Method Details

#authenticateObject

Raises:

  • (RuntimeError)


145
146
147
# File 'lib/spark_api/authentication/oauth2.rb', line 145

def authenticate
  raise RuntimeError, "API Authorization not available with an OpenId-only Auth instance"
end

#authorization_url(parameters = {}) ⇒ Object



140
141
142
143
# File 'lib/spark_api/authentication/oauth2.rb', line 140

def authorization_url(parameters={})
  params = openid_parameters.merge(parameters)
  build_openid_uri(params)
end

#request(method, path, body, options = {}) ⇒ Object

Raises:

  • (RuntimeError)


149
150
151
# File 'lib/spark_api/authentication/oauth2.rb', line 149

def request(method, path, body, options={})
  raise RuntimeError, "API Data not available with an OpenId-only Auth instance"
end