Try to set user secret in terminal(ubunty). Problem is that secret starts with "-"
After dotnet user-secrets set Authentication:Google:ClientSecret -dc_