cumulusci.oauth package

Submodules

exception cumulusci.oauth.exceptions.SalesforceOAuthError[source]

Bases: cumulusci.core.exceptions.CumulusCIException

class cumulusci.oauth.salesforce.CaptureSalesforceOAuth(client_id, client_secret, callback_url, auth_site, scope)[source]

Bases: object

class cumulusci.oauth.salesforce.OAuthCallbackHandler(request, client_address, server)[source]

Bases: http.server.BaseHTTPRequestHandler

do_GET()[source]
parent = None
class cumulusci.oauth.salesforce.SalesforceOAuth2(client_id, client_secret, callback_url, auth_site='https://login.salesforce.com')[source]

Bases: object

get_authorize_url(scope, prompt=None)[source]
get_token(code)[source]
refresh_token(refresh_token)[source]
revoke_token(current_token)[source]
cumulusci.oauth.salesforce.jwt_session(client_id, private_key, username, url=None)[source]

Complete the JWT Token Oauth flow to obtain an access token for an org.

Parameters:
  • client_id – Client Id for the connected app
  • private_key – Private key used to sign the connected app’s certificate
  • username – Username to authenticate as
  • url – Org’s instance_url

Module contents