mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-19 20:54:14 +02:00
add support for multiple oauth providers
This commit is contained in:
@@ -7,7 +7,6 @@ class OpenIdConfig(BaseSettings):
|
||||
client_id: str = ""
|
||||
client_secret: str = ""
|
||||
configuration_endpoint: str = ""
|
||||
name: str = "OpenID"
|
||||
enabled: bool = False
|
||||
|
||||
|
||||
@@ -18,7 +17,7 @@ class AuthConfig(BaseSettings):
|
||||
session_lifetime: int = 60 * 60 * 24
|
||||
admin_emails: list[str] = []
|
||||
email_password_resets: bool = False
|
||||
openid_connect: OpenIdConfig = OpenIdConfig()
|
||||
openid_connect: dict[str, OpenIdConfig] = {}
|
||||
|
||||
@property
|
||||
def jwt_signing_key(self):
|
||||
|
||||
Reference in New Issue
Block a user