mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Allow to skip login page if a single oidc provider is configured
This commit is contained in:
@ -18,6 +18,7 @@ final case class ProviderConfig(
|
||||
authorizeUrl: LenientUri,
|
||||
tokenUrl: LenientUri,
|
||||
userUrl: Option[LenientUri],
|
||||
logoutUrl: Option[LenientUri],
|
||||
signKey: ByteVector,
|
||||
sigAlgo: SignatureAlgo
|
||||
)
|
||||
@ -33,6 +34,7 @@ object ProviderConfig {
|
||||
LenientUri.unsafe("https://github.com/login/oauth/authorize"),
|
||||
LenientUri.unsafe("https://github.com/login/oauth/access_token"),
|
||||
Some(LenientUri.unsafe("https://api.github.com/user")),
|
||||
None,
|
||||
ByteVector.empty,
|
||||
SignatureAlgo.RS256
|
||||
)
|
||||
|
Reference in New Issue
Block a user