mirror of
https://github.com/grafana/grafana.git
synced 2024-12-29 10:21:41 -06:00
Auth: fix camelCase in getFallbackStrategyFor() func (#80061)
fix camelCase in getFallbackStrategyFor() func
This commit is contained in:
parent
ca40e333df
commit
359b118e6a
@ -177,7 +177,7 @@ func (s *SSOSettingsService) RegisterFallbackStrategy(providerRegex string, stra
|
||||
}
|
||||
|
||||
func (s *SSOSettingsService) loadSettingsUsingFallbackStrategy(ctx context.Context, provider string) (*models.SSOSettings, error) {
|
||||
loadStrategy, ok := s.getFallBackstrategyFor(provider)
|
||||
loadStrategy, ok := s.getFallbackStrategyFor(provider)
|
||||
if !ok {
|
||||
return nil, errors.New("no fallback strategy found for provider: " + provider)
|
||||
}
|
||||
@ -204,7 +204,7 @@ func getSettingsByProvider(provider string, settings []*models.SSOSettings) []*m
|
||||
return result
|
||||
}
|
||||
|
||||
func (s *SSOSettingsService) getFallBackstrategyFor(provider string) (ssosettings.FallbackStrategy, bool) {
|
||||
func (s *SSOSettingsService) getFallbackStrategyFor(provider string) (ssosettings.FallbackStrategy, bool) {
|
||||
for _, strategy := range s.fbStrategies {
|
||||
if strategy.IsMatch(provider) {
|
||||
return strategy, true
|
||||
|
Loading…
Reference in New Issue
Block a user