- Notifications
You must be signed in to change notification settings - Fork 125
feat: adds ability to provide redirect uri #595
New issue
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits Select commit Hold shift + click to select a range
950e242 feat: adds ability to provide redirect uri
chalmerlowe ff1f508 renames redirect_uri variable
chalmerlowe b7f1dfe adds js folder to sphinx and auth_redirect_uri
chalmerlowe ef40bf1 feat: adds javascript functionality related to oauth
chalmerlowe 5ca639a feat: adds javascript functionality related to oauth
chalmerlowe 2e71856 feat: adds sample authcodescript
chalmerlowe b8aca21 feat: adds ability to host oauth page with the documentation
chalmerlowe 2e5a1bb adds clarity to the user interface messaging
chalmerlowe 9264e13 updates linting, toctree
chalmerlowe f77832c updates minimum version of pydata-google-auth
chalmerlowe 9c6a445 Merge branch 'main' into oauth-testing-mode-2
chalmerlowe e4c86a4 Update docs/_static/js/authcodescripts.js
tswast e0cd682 adds check to avoid override of user given clientid, clientsecret
chalmerlowe 8b4876b adds parameters to the func to_gbq
chalmerlowe 7ad6942 adds docstrings related to three new parameters
chalmerlowe ea537b2 Apply suggestions from code review
tswast 9a228b0 fix rst formatting
tswast a51fbae 🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| | ||
| | ||
| // Copyright (c) 2023 pandas-gbq Authors All rights reserved. | ||
| // Use of this source code is governed by a BSD-style | ||
| // license that can be found in the LICENSE file. | ||
| | ||
| | ||
| function onloadoauthcode() { | ||
| const PARAMS = new Proxy(new URLSearchParams(window.location.search), { | ||
| get: (searchParams, prop) => searchParams.get(prop), | ||
| }); | ||
| const AUTH_CODE = PARAMS.code; | ||
| | ||
| document.querySelector('.auth-code').textContent = AUTH_CODE; | ||
| | ||
| setupCopyButton(document.querySelector('.copy'), AUTH_CODE); | ||
| } | ||
| | ||
| function setupCopyButton(button, text) { | ||
| button.addEventListener('click', () => { | ||
| navigator.clipboard.writeText(text); | ||
| button.textContent = "Verification Code Copied"; | ||
| setTimeout(() => { | ||
| // Remove the aria-live label so that when the | ||
| // button text changes back to "Copy", it is | ||
| // not read out. | ||
| button.removeAttribute("aria-live"); | ||
| button.textContent = "Copy"; | ||
| }, 1000); | ||
| | ||
| // Re-Add the aria-live attribute to enable speech for | ||
| // when button text changes next time. | ||
| setTimeout(() => { | ||
| button.setAttribute("aria-live", "assertive"); | ||
| }, 2000); | ||
| }); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -41,6 +41,7 @@ Contents: | |
| contributing.rst | ||
| changelog.md | ||
| privacy.rst | ||
| oauth.rst | ||
| | ||
| | ||
| Indices and tables | ||
| | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| .. image:: https://lh3.googleusercontent.com/KaU6SyiIpDKe4tyGPgt7yzGVTsfMqBvP9bL24o_4M58puYDO-nY8-BazrNk3RyhRFJA | ||
| :alt: gcloud CLI logo | ||
| :class: logo | ||
| | ||
| Sign in to BigQuery | ||
| =================== | ||
| | ||
| You are seeing this page because you are attempting to access BigQuery via one | ||
| of several possible methods, including: | ||
| | ||
| * the ``pandas_gbq`` library (https://github.com/googleapis/python-bigquery-pandas) | ||
| | ||
| OR a ``pandas`` library helper function such as: | ||
| | ||
| * ``pandas.DataFrame.to_gbq()`` | ||
| * ``pandas.read_gbq()`` | ||
| | ||
| from this or another machine. If this is not the case, close this tab. | ||
| | ||
| Enter the following verification code in the CommandLine Interface (CLI) on the | ||
| machine you want to log into. This is a credential **similar to your password** | ||
| and should not be shared with others. | ||
| | ||
| | ||
| .. raw:: html | ||
| | ||
| <script type="text/javascript"> | ||
| window.addEventListener( "load", onloadoauthcode ) | ||
| </script> | ||
| | ||
| <div> | ||
| <code class="auth-code"></code> | ||
| </div> | ||
| <br> | ||
| <button class="copy" aria-live="assertive">Copy</button> | ||
| | ||
| .. hint:: | ||
| | ||
| You can close this tab when you’re done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.