- Co-Authored-By
- Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
fix(coder-lite): validate tokens before trusting them and avoid hyperlinks in login messages
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
crates/coder-lite/src/interactive.rs
Diff
1 file changed, +34 -10
crates/coder-lite/src/interactive.rs modified +34 -10
@@ -25,8 +25,9 @@ use crossterm::{
| 25 | 25 |
|
| 26 | 26 |
|
| 27 | 27 |
|
| 28 |
|
|
| 28 |
|
|
| 29 | 29 |
|
| 30 |
|
|
| 30 | 31 |
|
| 31 | 32 |
|
| 32 | 33 |
|
@@ -208,18 +209,37 @@ pub async fn run_tui(options: SessionOptions) -> Result<(), Box<dyn std::error::
| 208 | 209 |
|
| 209 | 210 |
|
| 210 | 211 |
|
| 211 |
|
|
| 212 |
|
|
| 212 | 213 |
|
| 213 | 214 |
|
| 214 | 215 |
|
| 215 |
|
|
| 216 |
|
|
| 217 |
|
|
| 218 |
|
|
| 219 | 216 |
|
| 220 | 217 |
|
| 221 |
|
|
| 222 |
|
|
| 218 |
|
|
| 219 |
|
|
| 220 |
|
|
| 221 |
|
|
| 222 |
|
|
| 223 |
|
|
| 224 |
|
|
| 225 |
|
|
| 226 |
|
|
| 227 |
|
|
| 228 |
|
|
| 229 |
|
|
| 230 |
|
|
| 231 |
|
|
| 232 |
|
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 236 |
|
|
| 237 |
|
|
| 238 |
|
|
| 239 |
|
|
| 240 |
|
|
| 241 |
|
|
| 242 |
|
|
| 223 | 243 |
|
| 224 | 244 |
|
| 225 | 245 |
|
@@ -237,7 +257,8 @@ async fn ensure_authenticated() -> Result<(), Box<dyn std::error::Error>> {
| 237 | 257 |
|
| 238 | 258 |
|
| 239 | 259 |
|
| 240 |
|
|
| 260 |
|
|
| 261 |
|
|
| 241 | 262 |
|
| 242 | 263 |
|
| 243 | 264 |
|
@@ -250,7 +271,10 @@ pub async fn do_login() -> Result<String, Box<dyn std::error::Error>> {
| 250 | 271 |
|
| 251 | 272 |
|
| 252 | 273 |
|
| 253 |
|
|
| 274 |
|
|
| 275 |
|
|
| 276 |
|
|
| 277 |
|
|
| 254 | 278 |
|
| 255 | 279 |
|
| 256 | 280 |
|