We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
see
gmvault/src/gmv/credential_utils.py
Lines 38 to 58 in ee915c2
Originally posted by @tofurky in #335 (comment)
The text was updated successfully, but these errors were encountered:
see gmvault/src/gmv/credential_utils.py Lines 38 to 58 in ee915c2 def generate_permission_url(): """Generates the URL for authorizing access. This uses the "OAuth2 for Installed Applications" flow described at https://developers.google.com/accounts/docs/OAuth2InstalledApp Args: client_id: Client ID obtained by registering your app. scope: scope for access token, e.g. 'https://mail.google.com' Returns: A URL that the user should visit in their browser. """ params = {} params['client_id'] = gmvault_utils.get_conf_defaults().get("GoogleOauth2", "gmvault_client_id", "1070918343777-0eecradokiu8i77qfo8e3stbi0mkrtog.apps.googleusercontent.com") params['redirect_uri'] = gmvault_utils.get_conf_defaults().get("GoogleOauth2", "redirect_uri", 'urn:ietf:wg:oauth:2.0:oob') params['scope'] = gmvault_utils.get_conf_defaults().get("GoogleOauth2","scope",'https://mail.google.com/') params['response_type'] = 'code' account_base_url = gmvault_utils.get_conf_defaults().get("GoogleOauth2", "google_accounts_base_url", 'https://accounts.google.com') return '%s/%s?%s' % (account_base_url, 'o/oauth2/auth', gmvault_utils.format_url_params(params)) _Originally posted by @tofurky in [#335 @ # Duplicate of #
_Originally posted by @tofurky in [#335 @ # Duplicate of #
Sorry, something went wrong.
No branches or pull requests
see
gmvault/src/gmv/credential_utils.py
Lines 38 to 58 in ee915c2
Originally posted by @tofurky in #335 (comment)
The text was updated successfully, but these errors were encountered: