MSP-7470 UserAuth->CustomAuth
This commit is contained in:
1 parent
41762113e7
commit
a185cb0878
4 files changed
+12
-12
No files matched your search
@@ -41,7 +41,7 @@ type UserAuthentication struct {
|
||||
}
|
||||
|
||||
func NewUserAuthentication(
|
||||
cfg conf.UserAuth,
|
||||
cfg conf.CustomAuth,
|
||||
cache UserAuthenticationCache,
|
||||
repo UserAuthenticationRepo,
|
||||
) (UserAuthentication, error) {
|
||||
@@ -59,8 +59,8 @@ func NewUserAuthentication(
|
||||
tokenProviders[provider.Name] = tokenProvider
|
||||
}
|
||||
|
||||
endpointsSettings := make([]userAuthSetting, 0, len(cfg.AuthSettings))
|
||||
for _, setting := range cfg.AuthSettings {
|
||||
endpointsSettings := make([]userAuthSetting, 0, len(cfg.UserAuthSettings))
|
||||
for _, setting := range cfg.UserAuthSettings {
|
||||
for i := range setting.EndpointPrefixes {
|
||||
setting.EndpointPrefixes[i] = strings.TrimPrefix(setting.EndpointPrefixes[i], "/")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user