MCPcopy
hub / github.com/gitcoinco/web / build_auth_dict

Function build_auth_dict

app/git/utils.py:99–114  ·  view source on GitHub ↗

Collect authentication details. Args: oauth_token (str): The Github OAuth token. Returns: dict: An authentication dictionary.

(oauth_token)

Source from the content-addressed store, hash-verified

97
98
99def build_auth_dict(oauth_token):
100 """Collect authentication details.
101
102 Args:
103 oauth_token (str): The Github OAuth token.
104
105 Returns:
106 dict: An authentication dictionary.
107
108 """
109 return {
110 'api_url': settings.GITHUB_API_BASE_URL,
111 'client_id': settings.GITHUB_CLIENT_ID,
112 'client_secret': settings.GITHUB_CLIENT_SECRET,
113 'oauth_token': oauth_token
114 }
115
116
117def check_github(profile):

Callers 8

test_build_auth_dictMethod · 0.90
test_revoke_tokenMethod · 0.90
test_reset_tokenMethod · 0.90
is_github_token_validMethod · 0.90
is_github_token_validFunction · 0.85
revoke_tokenFunction · 0.85
reset_tokenFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_build_auth_dictMethod · 0.72
test_revoke_tokenMethod · 0.72
test_reset_tokenMethod · 0.72