Skip to content

Commit

Permalink
fix: deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Nov 4, 2024
1 parent b7dab9e commit 17eb14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/authentication/auth_service_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func (a *AuthenticationServiceImpl) configureProviders(c *config.Config) {
}

p = Default(c, a)
a.SetProvider(p)
a.setProvider(p)
case types.TokenAuthentication:
// if err == nil, previous token was oauth2. So we had a provider change
_, err := c.TokenAsOAuthToken()
Expand All @@ -350,7 +350,7 @@ func (a *AuthenticationServiceImpl) configureProviders(c *config.Config) {
p = Token(c, a.errorReporter)
a.setProvider(p)
case types.FakeAuthentication:
a.SetProvider(NewFakeCliAuthenticationProvider(c))
a.setProvider(NewFakeCliAuthenticationProvider(c))
case "":
// don't do anything
}
Expand Down

0 comments on commit 17eb14b

Please sign in to comment.