build_login_url_full
Description:
Builds a url at which the user can log in to the specified OAuth2-based web service.
In general, this url should be displayed in an embedded browser widget, and you should then intercept the browser's redirect to
redirect_uri
and extract the access token from the url fragment. After the access token has been retrieved, call
set_access_token. This must be done before making any API calls to
the service.
See the oauth2 spec for more details about the "user-agent" authentication flow.
The extra_params
and redirect_uri
should not be uri-encoded, that will be done automatically
Parameters:
this |
a OAuth2Proxy object |
redirect_uri |
the uri to redirect to after the user authenticates |
extra_params |
any extra parameters to add to the login url (e.g. facebook uses 'scope=foo,bar' to request extended permissions). |
Returns:
a newly allocated uri string |