Add slug login browser flow #60
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-b8374859-slug-login-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/cli/authbrowser route that redirects anonymous users through login and generates a one-time-display API key for authenticated sessions./api/v1/auth/checkAPI key verification endpoint and OpenAPI coverage.slug login [api-base-url]to open/print the browser auth URL, prompt for a pasted API key, verify it, and save redacted config.Testing
make check./scripts/pre-pr.shTask: #task-b8374859
94fdf055ea846b4ae941PR Review: Approved
Summary
Reviewed PR #60 at commit
846b4ae. The PR adds the browser-assisted CLI login flow:/cli/authredirects anonymous users through admin login and generates a raw API key for authenticated sessions,/api/v1/auth/checkverifies bearer API keys, andslug login [api-base-url]opens/prints the browser auth URL, prompts for the pasted key, verifies it, and saves local config without printing the key.Acceptance Criteria
slug loginopens or prints the browser auth URL./cli/authrequires an authenticated admin session before generating an API key./cli/authredirects through login and returns after successful magic-link verification./cli/authcreates an API key and displays the raw key once.make check,./scripts/pre-pr.sh, and Forgejo CI passed.Blocking Issues
None.
Warnings
None.
Verdict
Approved for merge.
846b4ae94126da9bb69aPR Review Update: Approved
Reviewed updated PR #60 at commit
26da9bbafter the first-run UX patch.Update verified
slug loginnow works without a manually supplied URL when a local dev server is reachable athttp://localhost:3000/api/v1./cli/auth, so the source is visible.Checks
make checkpassed locally../scripts/pre-pr.shpassed locally.26da9bb.Verdict
Approved for merge.
26da9bb69aac9e167c38PR Review Update: Approved
Reviewed updated PR #60 at commit
ac9e167after the CLI config UX changes.Update verified
${XDG_CONFIG_HOME:-~/.config}/slug/config.yaml.apiBaseUrl,apiKey, and optionalapiKeyReference; no profiles.--config <file>support, e.g.slug --config ./dev.slug.yaml login.slug loginuses the configuredapiBaseUrl; no URL argument is required for normal use.slug config showcontinues to redact the raw API key.--configfile usage.Checks
make checkpassed locally../scripts/pre-pr.shpassed locally.ac9e167.Verdict
Approved for merge.
ac9e167c38763b3ba600PR Review Update: Approved
Reviewed updated PR #60 at commit
763b3baafter adding Makefile dev CLI support.Update verified
make dev-configto write ignored local CLI config at./.slug/dev.yaml.make slug ARGS="..."to build and run theslugCLI with that dev config..slug/is ignored so generated dev config is not committed.make dev-configwrites the machine IP API URL, e.g.apiBaseUrl: http://<machine-ip>:3000/api/v1.Checks
make dev-configpassed locally.make checkpassed locally../scripts/pre-pr.shpassed locally.763b3ba.Verdict
Approved for merge.
763b3ba600f280ae961e