Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ OKTASSO_CLIENT_ID=

# Generic OAuth/PKCE settings — the defaults below are fine for local dev.
OKTASSO_SCOPES="profile email openid"
OKTASSO_REDIRECT_URI=http://localhost:3001/auth
OKTASSO_CALLBACK_PORT=3001
OKTASSO_REDIRECT_URI=http://localhost:31337/auth
OKTASSO_CALLBACK_PORT=31337
# Token cache lifetime in ms (55 minutes).
OKTASSO_REFRESH_AFTER_MS=3300000

Expand Down
2 changes: 1 addition & 1 deletion apps/acp-attach-cli/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ node <skill-dir>/scripts/tangent-acp-attach.mjs \
`list_session_resources`, `read_session_resource`), so it can contribute files
to the Tangent session and read what Prime or agents on other environments
shared — no setup needed.
- The Okta login opens a browser and listens on `localhost:3001`, so run the
- The Okta login opens a browser and listens on `localhost:31337`, so run the
client on the same machine as the browser you log in with.
- CLI flag reference lives in [apps/acp-attach-cli/src/usage.ts](../../../apps/acp-attach-cli/src/usage.ts).
2 changes: 1 addition & 1 deletion apps/local-agent-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extension — same remote-env host, no editor required.

The client self-mints a short-lived, auto-refreshed remote-env token. On its
first request it runs the Okta SSO login once (opening a browser and listening on
`localhost:3001`), caches the cookie, and derives your identity from it. Pass
`localhost:31337`), caches the cookie, and derives your identity from it. Pass
`--email` only to mint as a specific identity instead.

The deployment's Okta config must be present at runtime via `OKTASSO_*` and
Expand Down
4 changes: 2 additions & 2 deletions packages/local-agent-host/src/oktasso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ function readConfig(): OktassoConfig {
tokenExchangeUrl: requiredEnv("OKTASSO_TOKEN_EXCHANGE_URL"),
clientId: requiredEnv("OKTASSO_CLIENT_ID"),
scopes: env("OKTASSO_SCOPES", "profile email openid"),
redirectUri: env("OKTASSO_REDIRECT_URI", "http://localhost:3001/auth"),
callbackPort: Number(env("OKTASSO_CALLBACK_PORT", "3001")),
redirectUri: env("OKTASSO_REDIRECT_URI", "http://localhost:31337/auth"),
callbackPort: Number(env("OKTASSO_CALLBACK_PORT", "31337")),
refreshAfterMs: Number(env("OKTASSO_REFRESH_AFTER_MS", "3300000")),
cookieName: requiredEnv("AUTH_JWT_TOKEN_COOKIE_NAME"),
};
Expand Down
2 changes: 1 addition & 1 deletion scripts/oktassoAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Flow:
* 1. Generate PKCE verifier + challenge.
* 2. Open the user's browser at Okta's `/authorize`.
* 3. Run a one-shot HTTP server on http://localhost:3001/auth to catch the
* 3. Run a one-shot HTTP server on http://localhost:31337/auth to catch the
* redirect with the authorization code.
* 4. Exchange the code for an Okta access token at `/token`.
* 5. Exchange the access token for an Oktasso session token via the
Expand Down
Loading