Class: SparkApi::Authentication::OpenIdOAuth2Hybrid

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

Overview

OpenId/OAuth 2 Hybrid

Uses OpenId for Authentication, but also uses OAuth2 for authorization.

Direct Known Subclasses

OpenId

Instance Attribute Summary

Attributes inherited from BaseAuth

#session

Instance Method Summary collapse

Methods inherited from OAuth2

#authenticate, #initialize, #logout, #request, #session, #session=, #sparkbar_token

Methods inherited from BaseAuth

#authenticate, #authenticated?, #build_url_parameters, #initialize, #logout, #request

Constructor Details

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

Instance Method Details

#authorization_url(parameters = {}) ⇒ Object



117
118
119
120
121
# File 'lib/spark_api/authentication/oauth2.rb', line 117

def authorization_url(parameters={})
  params = openid_parameters.merge(parameters)
  params["openid.spark.combined_flow"] = true
  build_openid_uri(params)
end