Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alanyee committed Oct 1, 2020
1 parent 85be9f9 commit 4425a76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion intuitlib/config.py
Expand Up @@ -27,6 +27,14 @@
'production': 'https://developer.intuit.com/.well-known/openid_configuration/',
}

OAUTH2_ISSUER = "https://oauth.platform.intuit.com/op/v1"
OAUTH2_AUTH_ENDPOINT = "https://appcenter.intuit.com/connect/oauth2"
OAUTH2_TOKEN_ENDPOINT = "https://oauth.platform.intuit.com/oauth2/v1/tokens/bearer"
OAUTH2_REV_ENDPOINT = "https://developer.api.intuit.com/v2/oauth2/tokens/revoke"
OAUTH2_JWKS_URI = "https://oauth.platform.intuit.com/op/v1/jwks"
OAUTH2_SANDBOX = "https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo"
OAUTH2_PROD = "https://accounts.platform.intuit.com/v1/openid_connect/userinfo"

# info for user-agent
PYTHON_VERSION = platform.python_version()
OS_SYSTEM = platform.uname()[0]
Expand All @@ -36,4 +44,4 @@
ACCEPT_HEADER = {
'Accept': 'application/json',
'User-Agent': '{0}-{1}-{2}-{3} {4} {5} {6}'.format('Intuit-OAuthClient', version.__version__,'Python', PYTHON_VERSION, OS_SYSTEM, OS_RELEASE_VER, OS_MACHINE)
}
}

0 comments on commit 4425a76

Please sign in to comment.