Class: MySpace::OAuth::Response
- Inherits:
-
OpenID::Extension
- Object
- OpenID::Extension
- MySpace::OAuth::Response
- Defined in:
- lib/myspace/oauth_request.rb
Overview
Represents the data returned in a simple registration response inside of an OpenID id_res response. This object will be created by the OpenID server, added to the id_res response object, and then extracted from the id_res message by the Consumer.
Instance Attribute Summary collapse
-
#authorized_request_token ⇒ Object
readonly
Returns the value of attribute authorized_request_token.
-
#ns_uri ⇒ Object
readonly
Returns the value of attribute ns_uri.
Class Method Summary collapse
-
.from_success_response(success_response, oauth_consumer) ⇒ Object
Create an Response object from an OpenID::Consumer::SuccessResponse from consumer.complete If you set the signed_only parameter to false, unsigned data from the id_res message from the server will be processed.
Instance Method Summary collapse
-
#initialize(request_token = nil) ⇒ Response
constructor
A new instance of Response.
Constructor Details
Instance Attribute Details
#authorized_request_token ⇒ Object (readonly)
Returns the value of attribute authorized_request_token.
43 44 45 |
# File 'lib/myspace/oauth_request.rb', line 43 def @authorized_request_token end |
#ns_uri ⇒ Object (readonly)
Returns the value of attribute ns_uri.
43 44 45 |
# File 'lib/myspace/oauth_request.rb', line 43 def ns_uri @ns_uri end |
Class Method Details
.from_success_response(success_response, oauth_consumer) ⇒ Object
Create an Response object from an OpenID::Consumer::SuccessResponse from consumer.complete If you set the signed_only parameter to false, unsigned data from the id_res message from the server will be processed.
55 56 57 58 |
# File 'lib/myspace/oauth_request.rb', line 55 def self.from_success_response(success_response, oauth_consumer) args = success_response.extension_response(NS_URI, nil) new(::OAuth::RequestToken.new(oauth_consumer, args['request_token'], '')) end |