Allow to skip login page if a single oidc provider is configured

This commit is contained in:
eikek
2022-07-08 17:09:56 +02:00
parent 275901267d
commit 3fc72cedac
12 changed files with 132 additions and 13 deletions

View File

@ -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
)