René's URL Explorer Experiment


Title: feat(oauth): Use keyring to store oauth token by burmudar · Pull Request #1228 · sourcegraph/src-cli · GitHub

Open Graph Title: feat(oauth): Use keyring to store oauth token by burmudar · Pull Request #1228 · sourcegraph/src-cli

X Title: feat(oauth): Use keyring to store oauth token by burmudar · Pull Request #1228 · sourcegraph/src-cli

Description: use keyring to store oauth token add internal/keyring package to use 99designs keyring rename keyring to store make keyring struct src-cli and set label on secret return Token struct store token ...

Open Graph Description: use keyring to store oauth token add internal/keyring package to use 99designs keyring rename keyring to store make keyring struct src-cli and set label on secret return Token struct store token ...

X Description: use keyring to store oauth token add internal/keyring package to use 99designs keyring rename keyring to store make keyring struct src-cli and set label on secret return Token struct store token ...

Opengraph URL: https://github.com/sourcegraph/src-cli/pull/1228

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:56259a30-fafb-e329-b329-242e11f8eef6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEA2:386FF5:201971:2AEA9A:6971B0AF
html-safe-nonce4324a231f6e58b6172ba8ee5085b4346a19253b1c95f5a589ecc797b36649e5b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUEyOjM4NkZGNToyMDE5NzE6MkFFQTlBOjY5NzFCMEFGIiwidmlzaXRvcl9pZCI6IjMxMzE3NzY5OTg4MDM4NzgwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac58a01def653312eda3f87e9e36e306a3d084e12180be19790dea137bec613529
hovercard-subject-tagpull_request:3081079960
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/sourcegraph/src-cli/1228/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/8b2b003cae168d6d09a42ab849c5bca56e382626286f37bdedd6c46b7def3c5c/sourcegraph/src-cli/pull/1228
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8b2b003cae168d6d09a42ab849c5bca56e382626286f37bdedd6c46b7def3c5c/sourcegraph/src-cli/pull/1228
og:image:altuse keyring to store oauth token add internal/keyring package to use 99designs keyring rename keyring to store make keyring struct src-cli and set label on secret return Token struct store token ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameburmudar
hostnamegithub.com
expected-hostnamegithub.com
None2b0f2f00499ad3dd2c21ad030a3c403edca54df20ea256f6517c6d8c4fa3a1a4
turbo-cache-controlno-preview
go-importgithub.com/sourcegraph/src-cli git https://github.com/sourcegraph/src-cli.git
octolytics-dimension-user_id3979584
octolytics-dimension-user_loginsourcegraph
octolytics-dimension-repository_id130770053
octolytics-dimension-repository_nwosourcegraph/src-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id130770053
octolytics-dimension-repository_network_root_nwosourcegraph/src-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release979375c570cc30aefe2a734083debe402a612209
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcegraph%2Fsrc-cli%2Fpull%2F1228
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcegraph%2Fsrc-cli%2Fpull%2F1228
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=sourcegraph%2Fsrc-cli
Reloadhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
Reloadhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
Reloadhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
sourcegraph https://patch-diff.githubusercontent.com/sourcegraph
src-clihttps://patch-diff.githubusercontent.com/sourcegraph/src-cli
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsourcegraph%2Fsrc-cli
Fork 70 https://patch-diff.githubusercontent.com/login?return_to=%2Fsourcegraph%2Fsrc-cli
Star 315 https://patch-diff.githubusercontent.com/login?return_to=%2Fsourcegraph%2Fsrc-cli
Code https://patch-diff.githubusercontent.com/sourcegraph/src-cli
Issues 41 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/issues
Pull requests 4 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pulls
Actions https://patch-diff.githubusercontent.com/sourcegraph/src-cli/actions
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/sourcegraph/src-cli/security
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
Insights https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pulse
Code https://patch-diff.githubusercontent.com/sourcegraph/src-cli
Issues https://patch-diff.githubusercontent.com/sourcegraph/src-cli/issues
Pull requests https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pulls
Actions https://patch-diff.githubusercontent.com/sourcegraph/src-cli/actions
Security https://patch-diff.githubusercontent.com/sourcegraph/src-cli/security
Insights https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fsourcegraph%2Fsrc-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fsourcegraph%2Fsrc-cli%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#issue-comment-box
burmudarhttps://patch-diff.githubusercontent.com/burmudar
wb/add-oauth-refresh-tokenhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/tree/wb/add-oauth-refresh-token
wb/oauth-keyringhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/tree/wb/oauth-keyring
feat(oauth): Use keyring to store oauth token https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#top
burmudarhttps://patch-diff.githubusercontent.com/burmudar
wb/add-oauth-refresh-tokenhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/tree/wb/add-oauth-refresh-token
wb/oauth-keyringhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/tree/wb/oauth-keyring
Conversation 3 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
Commits 7 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits
Checks 8 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/checks
Files changed https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/files
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/burmudar
burmudarhttps://patch-diff.githubusercontent.com/burmudar
Dec 8, 2025https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#issue-3705767135
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
burmudarhttps://patch-diff.githubusercontent.com/burmudar
December 8, 2025 12:30https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#commits-pushed-363e925
https://patch-diff.githubusercontent.com/burmudar
use keyring to store oauth tokenhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/363e92532274a1dcc66f992ef18e047880f029db
363e925https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/363e92532274a1dcc66f992ef18e047880f029db
https://patch-diff.githubusercontent.com/burmudar
add internal/keyring package to use 99designs keyringhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/14374593031610d0fbecb6623ba1b7efba289cf4
1437459https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/14374593031610d0fbecb6623ba1b7efba289cf4
https://patch-diff.githubusercontent.com/burmudar
return Token structhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/4c65c11b0ef4a3e611fe4df1cb72e5e5f2d20699
4c65c11https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/4c65c11b0ef4a3e611fe4df1cb72e5e5f2d20699
https://patch-diff.githubusercontent.com/burmudar
store token in keyringhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/4c95c34c5e2373150b41e3adb29a4e5c05cb4ff5
4c95c34https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/4c95c34c5e2373150b41e3adb29a4e5c05cb4ff5
https://patch-diff.githubusercontent.com/burmudar
create token struct from TokenResponsehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/8d58ac195af2eabeef3ec52d31716d4161f9f049
8d58ac1https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/8d58ac195af2eabeef3ec52d31716d4161f9f049
https://patch-diff.githubusercontent.com/burmudar
add basic http transport for oauthhttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/61e017231af72f16edb8ec2da34bc2a05ed85d85
61e0172https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/61e017231af72f16edb8ec2da34bc2a05ed85d85
https://patch-diff.githubusercontent.com/burmudar
OAuth transport and use when available in api clienthttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/278fc771e170a715356c75e92f5103213572e2bc
278fc77https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/commits/278fc771e170a715356c75e92f5103213572e2bc
https://patch-diff.githubusercontent.com/burmudar
burmudarhttps://patch-diff.githubusercontent.com/burmudar
Dec 8, 2025https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#issuecomment-3626249118
feat(oauth): use oauth device flow to authenticate with predefined src-cli OAuth client  #1223https://github.com/sourcegraph/src-cli/pull/1223
feat(oauth): Add refresh to oauthdevice.Client #1227https://github.com/sourcegraph/src-cli/pull/1227
feat(oauth): Use keyring to store oauth token #1228https://github.com/sourcegraph/src-cli/pull/1228
git-spicehttps://abhinav.github.io/git-spice/
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
feat(oauth): Add refresh to oauthdevice.Client #1227 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1227
feat(oauth): use oauth device flow to authenticate with predefined src-cli OAuth client #1223 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1223
https://patch-diff.githubusercontent.com/keegancsmith
keegancsmithhttps://patch-diff.githubusercontent.com/keegancsmith
Dec 8, 2025 https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#pullrequestreview-3552405954
View reviewed changes https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/files/278fc771e170a715356c75e92f5103213572e2bc
cmd/src/login.gohttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/files/278fc771e170a715356c75e92f5103213572e2bc#diff-fd50698d96aa946a7476b6cc44a6aaa8c4800a24ad5c8ab888fe765da9e27366
keegancsmithhttps://patch-diff.githubusercontent.com/keegancsmith
Dec 8, 2025https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#discussion_r2598885058
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
burmudarhttps://patch-diff.githubusercontent.com/burmudar
Dec 8, 2025https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228#discussion_r2598892724
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsourcegraph%2Fsrc-cli%2Fpull%2F1228
https://patch-diff.githubusercontent.com/keegancsmith
keegancsmith https://patch-diff.githubusercontent.com/keegancsmith
https://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228/files/278fc771e170a715356c75e92f5103213572e2bc
Please reload this pagehttps://patch-diff.githubusercontent.com/sourcegraph/src-cli/pull/1228
https://patch-diff.githubusercontent.com/burmudar
https://patch-diff.githubusercontent.com/keegancsmith
https://patch-diff.githubusercontent.com/apps/copilot-swe-agent
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.