You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Allow overriding usptream OAuth2 providers endpoints
Also have a way to disable OIDC discovery when all the endpoints are known.
This commit is contained in:
@@ -93,6 +93,10 @@ pub enum DiscoveryError {
|
||||
/// An error occurred sending the request.
|
||||
#[error(transparent)]
|
||||
Service(BoxError),
|
||||
|
||||
/// Discovery is disabled for this provider.
|
||||
#[error("Discovery is disabled for this provider")]
|
||||
Disabled,
|
||||
}
|
||||
|
||||
impl<S> From<json_response::Error<S>> for DiscoveryError
|
||||
|
||||
Reference in New Issue
Block a user