-
Notifications
You must be signed in to change notification settings - Fork 13
Secrets oauth browser #326
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
6 commits
Select commit
Hold shift + click to select a range
00d6727
Refactor: extract oauth from login
timothyF95 fd957ca
Lint
timothyF95 a2ae9cd
complete vault secrets browser OAuth (callback + exchange)
timothyF95 ba8cfa6
Merge branch 'main' into secrets-oauth-browser
timothyF95 ba1e70b
Lint
timothyF95 e95ff7d
Update token exchage flow
timothyF95 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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <title>Secrets authorization failed</title> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <link rel="stylesheet" href="./output.css" /> | ||
| </head> | ||
|
|
||
| <body | ||
| class="bg-background-alt flex flex-col items-center justify-center min-h-screen" | ||
| > | ||
| <div class="flex items-center gap-2"> | ||
| <svg | ||
| width="32" | ||
| height="32" | ||
| viewBox="0 0 32 32" | ||
| fill="none" | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| > | ||
| <path | ||
| d="M27.4099 0H4.59008C2.05505 0 0 2.05505 0 4.59008V27.4099C0 29.945 2.05505 32 4.59008 32H27.4099C29.945 32 32 29.945 32 27.4099V4.59008C32 2.05505 29.945 0 27.4099 0Z" | ||
| fill="#0847F7" | ||
| ></path> | ||
| <path | ||
| d="M16.0021 6.76172L8.00244 11.3805V20.618L16.0021 25.2368L24.0017 20.618V11.3805L16.0021 6.76172ZM20.6122 18.6615L16.0021 21.3223L11.3919 18.6615V13.3384L16.0021 10.6776L20.6122 13.3384V18.6615Z" | ||
| fill="white" | ||
| ></path> | ||
| </svg> | ||
| <h1 class="text-3xl font-semibold text-gray-800">CRE</h1> | ||
| </div> | ||
| <div | ||
| class="bg-white shadow-lg rounded p-8 max-w-[520px] text-center mt-8 border border-border flex flex-col items-center gap-4" | ||
| > | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| width="32" | ||
| height="32" | ||
| viewBox="0 0 32 32" | ||
| fill="none" | ||
| > | ||
| <g clip-path="url(#clip0_secrets_err)"> | ||
| <path | ||
| d="M16 0C17.4688 0 18.8854 0.1875 20.25 0.5625C21.6146 0.9375 22.8854 1.47917 24.0625 2.1875C25.2396 2.89583 26.3177 3.72917 27.2969 4.6875C28.276 5.64583 29.1146 6.72396 29.8125 7.92188C30.5104 9.11979 31.0469 10.3958 31.4219 11.75C31.7969 13.1042 31.9896 14.5208 32 16C32 17.4688 31.8125 18.8854 31.4375 20.25C31.0625 21.6146 30.5208 22.8854 29.8125 24.0625C29.1042 25.2396 28.2708 26.3177 27.3125 27.2969C26.3542 28.276 25.276 29.1146 24.0781 29.8125C22.8802 30.5104 21.6042 31.0469 20.25 31.4219C18.8958 31.7969 17.4792 31.9896 16 32C14.5312 32 13.1146 31.8125 11.75 31.4375C10.3854 31.0625 9.11458 30.5208 7.9375 29.8125C6.76042 29.1042 5.68229 28.2708 4.70312 27.3125C3.72396 26.3542 2.88542 25.276 2.1875 24.0781C1.48958 22.8802 0.953125 21.6042 0.578125 20.25C0.203125 18.8958 0.0104167 17.4792 0 16C0 14.5312 0.1875 13.1146 0.5625 11.75C0.9375 10.3854 1.47917 9.11458 2.1875 7.9375C2.89583 6.76042 3.72917 5.68229 4.6875 4.70312C5.64583 3.72396 6.72396 2.88542 7.92188 2.1875C9.11979 1.48958 10.3958 0.953125 11.75 0.578125C13.1042 0.203125 14.5208 0.0104167 16 0ZM18 24V20H14V24H18ZM18 18V8H14V18H18Z" | ||
| fill="#EF894F" | ||
| /> | ||
| </g> | ||
| <defs> | ||
| <clipPath id="clip0_secrets_err"> | ||
| <rect width="32" height="32" fill="white" /> | ||
| </clipPath> | ||
| </defs> | ||
| </svg> | ||
| <h2 class="text-2xl font-semibold text-gray-800"> | ||
| Secrets authorization was unsuccessful | ||
| </h2> | ||
| <p class="mt-2 text-gray-600"> | ||
| Your vault sign-in step could not be completed. Close this window and try | ||
| again from your terminal. | ||
| </p> | ||
| </div> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume there will be a follow-up where the access token is passed to the command execution?