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

@ -9,6 +9,7 @@ import (
op "github.com/caos/oidc/pkg/op"
gomock "github.com/golang/mock/gomock"
language "golang.org/x/text/language"
)
// MockConfiguration is a mock of Configuration interface.
@ -188,6 +189,20 @@ func (mr *MockConfigurationMockRecorder) KeysEndpoint() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeysEndpoint", reflect.TypeOf((*MockConfiguration)(nil).KeysEndpoint))
}
// SupportedUILocales mocks base method.
func (m *MockConfiguration) SupportedUILocales() []language.Tag {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SupportedUILocales")
ret0, _ := ret[0].([]language.Tag)
return ret0
}
// SupportedUILocales indicates an expected call of SupportedUILocales.
func (mr *MockConfigurationMockRecorder) SupportedUILocales() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SupportedUILocales", reflect.TypeOf((*MockConfiguration)(nil).SupportedUILocales))
}
// TokenEndpoint mocks base method.
func (m *MockConfiguration) TokenEndpoint() op.Endpoint {
m.ctrl.T.Helper()