(
&self,
provider_id: &str,
path: &str,
)
| 434 | } |
| 435 | |
| 436 | pub fn rewrite_request_path( |
| 437 | &self, |
| 438 | provider_id: &str, |
| 439 | path: &str, |
| 440 | ) -> Result<Option<String>, OAuthError> { |
| 441 | let provider = self |
| 442 | .providers |
| 443 | .get(provider_id) |
| 444 | .ok_or_else(|| OAuthError::ProviderNotFound(provider_id.to_string()))?; |
| 445 | Ok(provider.rewrite_request_path(path)) |
| 446 | } |
| 447 | |
| 448 | pub fn needs_response_translation( |
| 449 | &self, |
no outgoing calls
no test coverage detected