(
&self,
provider_id: &str,
original_path: &str,
)
| 458 | } |
| 459 | |
| 460 | pub fn response_format( |
| 461 | &self, |
| 462 | provider_id: &str, |
| 463 | original_path: &str, |
| 464 | ) -> Result<Option<ResponseFormat>, OAuthError> { |
| 465 | let provider = self |
| 466 | .providers |
| 467 | .get(provider_id) |
| 468 | .ok_or_else(|| OAuthError::ProviderNotFound(provider_id.to_string()))?; |
| 469 | Ok(provider.response_format(original_path)) |
| 470 | } |
| 471 | |
| 472 | pub fn has_provider(&self, id: &str) -> bool { |
| 473 | self.providers.contains_key(id) |
no outgoing calls
no test coverage detected