fix: supported ui locales from config (#107)
This commit is contained in:
parent
1392c0ee9a
commit
8a35b89815
4 changed files with 26 additions and 10 deletions
|
@ -3,8 +3,6 @@ package op
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
"golang.org/x/text/language"
|
||||
|
||||
"github.com/caos/oidc/pkg/oidc"
|
||||
"github.com/caos/oidc/pkg/utils"
|
||||
)
|
||||
|
@ -37,7 +35,7 @@ func CreateDiscoveryConfig(c Configuration, s Signer) *oidc.DiscoveryConfigurati
|
|||
IntrospectionEndpointAuthMethodsSupported: AuthMethodsIntrospectionEndpoint(c),
|
||||
ClaimsSupported: SupportedClaims(c),
|
||||
CodeChallengeMethodsSupported: CodeChallengeMethods(c),
|
||||
UILocalesSupported: UILocales(c),
|
||||
UILocalesSupported: c.SupportedUILocales(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,10 +144,3 @@ func CodeChallengeMethods(c Configuration) []oidc.CodeChallengeMethod {
|
|||
}
|
||||
return codeMethods
|
||||
}
|
||||
|
||||
func UILocales(c Configuration) []language.Tag {
|
||||
return []language.Tag{
|
||||
language.English,
|
||||
language.German,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue