Skip to content

auth: print the agent setup prompt after login (PDOCS-4939) - #2087

Merged
anup-deka merged 1 commit into
digitalocean:mainfrom
dfinn5-do:auth-login-agent-setup-hint
Nov 4, 2026
Merged

anup-deka merged 1 commit into
digitalocean:mainfrom
dfinn5-do:auth-login-agent-setup-hint

Conversation

@dfinn5-do

@dfinn5-do dfinn5-do commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

After doctl auth login succeeds, print the agent setup prompt in the terminal:

Paste this setup prompt into your agent:
  Fetch https://docs.digitalocean.com/get-started.md and follow it.

The signed-in page from #2101 already offers this prompt with a copy button. The terminal now shows it too, for users who don't look at the browser tab. Both read oauth.AgentSetupPrompt, so the text can't drift. Failed sign-ins don't print it.

Testing

Unit tests in commands and the auth/login integration spec cover the prompt on success and its absence on failure.

@dfinn5-do

Copy link
Copy Markdown
Contributor Author

cc @anup-deka @DO-rrao, since you wrote and reviewed the OAuth login in #2012.

@dfinn5-do
dfinn5-do force-pushed the auth-login-agent-setup-hint branch from 988a402 to 273b92a Compare November 3, 2026 14:00
@dfinn5-do dfinn5-do changed the title auth: suggest the agent setup playbook after login auth: suggest the agent setup playbook after login (PDOCS-4939) Nov 3, 2026
@dfinn5-do
dfinn5-do force-pushed the auth-login-agent-setup-hint branch 7 times, most recently from 6ef7cc2 to 00ce92f Compare November 4, 2026 13:54
@dfinn5-do dfinn5-do changed the title auth: suggest the agent setup playbook after login (PDOCS-4939) auth: print the agent setup prompt after login (PDOCS-4939) Nov 4, 2026
The signed-in page already offers the prompt with a copy button. Print the same text in the terminal, so users who don't look at the browser tab still see it.
@dfinn5-do
dfinn5-do force-pushed the auth-login-agent-setup-hint branch from 00ce92f to a4a9be0 Compare November 4, 2026 14:03
@anup-deka
anup-deka merged commit 783d252 into digitalocean:main Nov 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

⌂ 换网址