Class | OpenID::SuccessRequest |
In: |
lib/openid/consumer.rb
|
Parent: | OpenIDStatus |
Encapsulates the information the library retrieves and uses during Consumer.begin.
identity_url | [R] | |
nonce | [R] | |
return_to_args | [R] | |
server_id | [R] | |
server_url | [R] | |
service | [R] |
Creates a new SuccessRequest object. This just stores each argument in an appropriately named field.
Users of this library should not create instances of this class. Instances of this class are created by Consumer during begin.
Add an openid extension argument to the request. A simple resitration request may look something like:
req.add_extension_arg('sreg','required','email') req.add_extension_arg('sreg','optional','nickname,gender') req.add_extension_arg('sreg','policy_url','http://example.com/policy')
Called to construct the redirect URL sent to the browser to ask the server to verify its identity. This is called in step 3 of the flow described in the overview. Please note that you don‘t need to call this method directly unless you need to create a custom redirect, as it is called directly during begin. The generated redirect should be sent to the browser which initiated the authorization request.
Return a string which is the URL to which you should redirect the user.
Checks to see if the user‘s OpenID server additionally supports the extensions service type url provided.