fix: supported ui locales from config (#107)

This commit is contained in:
Livio Amstutz 2021-07-09 09:20:03 +02:00 committed by GitHub
parent 1392c0ee9a
commit 8a35b89815
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 10 deletions

View file

@ -5,6 +5,8 @@ import (
"net/url"
"os"
"strings"
"golang.org/x/text/language"
)
const OidcDevMode = "CAOS_OIDC_DEV"
@ -24,6 +26,8 @@ type Configuration interface {
GrantTypeRefreshTokenSupported() bool
GrantTypeTokenExchangeSupported() bool
GrantTypeJWTAuthorizationSupported() bool
SupportedUILocales() []language.Tag
}
func ValidateIssuer(issuer string) error {