Fix issue with missing configuration for Facebook or Google
This commit is contained in:
@@ -218,12 +218,15 @@ public class IdentityService(
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
var user = await GetUserByUserNameAsync(userName);
|
||||
|
||||
var jwtSection = configuration.GetRequiredSection("Authentication:Jwt");
|
||||
|
||||
var token = JwtTokenHelper.GenerateJwtToken(
|
||||
issuer: configuration["Jwt-Issuer"] ?? "",
|
||||
audience: configuration["Jwt-Audience"] ?? "",
|
||||
key: configuration["Jwt-Key"] ?? "",
|
||||
issuer: jwtSection["Issuer"] ?? "",
|
||||
audience: jwtSection["Audience"] ?? "",
|
||||
key: jwtSection["Key"] ?? "",
|
||||
userId: user?.Id ?? "");
|
||||
|
||||
return token;
|
||||
|
||||
Reference in New Issue
Block a user