Class: SparkApi::Authentication::OpenId
- Inherits:
-
OpenIdOAuth2Hybrid
- Object
- BaseAuth
- OAuth2
- OpenIdOAuth2Hybrid
- SparkApi::Authentication::OpenId
- Defined in:
- lib/spark_api/authentication/oauth2.rb
Instance Attribute Summary
Attributes inherited from BaseAuth
Instance Method Summary collapse
- #authenticate ⇒ Object
- #authorization_url(parameters = {}) ⇒ Object
- #request(method, path, body, options = {}) ⇒ Object
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
#authenticate ⇒ Object
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 (parameters={}) params = openid_parameters.merge(parameters) build_openid_uri(params) end |
#request(method, path, body, options = {}) ⇒ Object
149 150 151 |
# File 'lib/spark_api/authentication/oauth2.rb', line 149 def request(method, path, body, ={}) raise RuntimeError, "API Data not available with an OpenId-only Auth instance" end |