chore(oauth2): fix !develop syntax contd

This commit is contained in:
Sarah Vaupel 2024-03-20 18:24:39 +01:00
parent 274c86a820
commit b1cb45ac7e

View File

@ -363,11 +363,11 @@ makeFoundation appSettings''@AppSettings{..} = do
return . uncurry p $ fromJust mArgs
tenantID = case appUserAuthConf of
UserAuthConfSingleSource (AuthSourceConfAzureAdV2 AzureConf{..})
-> Text.pack azureConfTenantId
-> tshow azureConfTenantId
_other
-> error "Tenant ID missing!"
oauth2Plugins
| UserAuthConfSingleSource (AuthSourceConfAzureAdV2 AzureConf{..}) appUserAuthConf
| UserAuthConfSingleSource (AuthSourceConfAzureAdV2 AzureConf{..}) <- appUserAuthConf
= singleton $ oauth2AzureADScoped (Set.toList azureConfScopes) azureConfClientId azureConfClientSecret
| otherwise
= mempty