()
| 458 | }; |
| 459 | |
| 460 | fn sample_config() -> OAuthConfig { |
| 461 | OAuthConfig { |
| 462 | client_id: "runtime-client".to_string(), |
| 463 | authorize_url: "https://console.test/oauth/authorize".to_string(), |
| 464 | token_url: "https://console.test/oauth/token".to_string(), |
| 465 | callback_port: Some(4545), |
| 466 | manual_redirect_url: Some("https://console.test/oauth/callback".to_string()), |
| 467 | scopes: vec!["org:read".to_string(), "user:write".to_string()], |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | fn env_lock() -> std::sync::MutexGuard<'static, ()> { |
| 472 | crate::test_env_lock() |
no outgoing calls