OAuth

class socialregistration.clients.oauth.OAuth(access_token=None, access_token_secret=None)

Base class for OAuth1 services such as Twitter, LinkedIn and Tumblr.

client(verifier=None)

Return the correct client depending on which stage of the OAuth process we’re in.

complete(GET)

When redirect back to our application, try to complete the flow by requesting an access token. If the access token request fails, it’ll throw an OAuthError.

Tries to complete the flow by validating against the GET paramters received.

get_access_token(verifier=None)

Return the access token for this API. If we’ve not fetched it yet, go out, request and memoize it.

get_callback_url()

Returns the URL where the service should redirect the user back to once permissions/access were granted - or not. This should take in account the value returned by self.is_https().

get_redirect_url()

Return the authorization/authentication URL signed with the request token.

get_request_token()

Return the request token for this API. If we’ve not fetched it yet, go out, request and memoize it.

static get_session_key()

Return a unique identifier to store this client in the user’s session for the duration of the authentication/authorization process.

get_user_info()

Return the current user’s information.

is_https()

Check if the site is using HTTPS. This is controlled with SOCIALREGISTRATION_USE_HTTPS setting.

request(url, method='GET', params=None, headers=None)

Make signed requests against url.

Project Versions

Previous topic

Base

Next topic

OAuth 2

This Page