Auth: Fallback to default client authentication setting in AzureAD OAuth (#98798)

Fallback to default client authentication setting for backwards compatibility
This commit is contained in:
Misi
2025-01-10 14:21:16 +01:00
committed by GitHub
parent 0501ff9079
commit de290cf6a5
3 changed files with 11 additions and 2 deletions
+1 -2
View File
@@ -198,9 +198,8 @@ func (s *SocialAzureAD) Exchange(ctx context.Context, code string, authOptions .
case social.ClientSecretPost:
// Default behavior for ClientSecretPost, no additional setup needed
default:
return nil, fmt.Errorf("invalid client authentication method: %s", s.info.ClientAuthentication)
s.log.Debug("ClientAuthentication is not set. Using default client authentication method")
}
// Default token exchange