You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a20f0af
Browse filesBrowse the repository at this point in the historyBrowse files
fix(oauth): address review on CLI token env and client registrations
- Spawned CLI processes get `process.env` without `CODER_SESSION_TOKEN`,
matched as the CLI reads it: any letter case, with or without the
`HOMEBREW_` prefix. Only shell command strings (the SSH ProxyCommand
and `terminal.sendText`) keep an inline `--token=`, since the
extension can't set their environment.
- Save a client registration only after the OAuth login succeeds, so a
failed login keeps the registration a stored session was issued to.
- Rename the recorded OAuth client to `registration` to tell the
registered app apart from the HTTP client.
- Offer OAuth only when discovery advertises `registration_endpoint`,
which Coder omits while dynamic client registration is off (the
default from 2.37), instead of failing after the user picks OAuth.
0 commit comments