diff --git a/src/Controllers/ExternalLoginController.cs b/src/Controllers/ExternalLoginController.cs index 67b54ec..86e1435 100644 --- a/src/Controllers/ExternalLoginController.cs +++ b/src/Controllers/ExternalLoginController.cs @@ -41,7 +41,7 @@ namespace SteamOpenIdConnectProvider.Controllers public async Task ExternalLoginCallback(string returnUrl = null, string remoteError = null) { returnUrl ??= Url.Content("~/"); - + if (remoteError != null) { throw new Exception($"Error from external provider: {remoteError}"); @@ -62,7 +62,7 @@ namespace SteamOpenIdConnectProvider.Controllers var userName = info.Principal.FindFirstValue(ClaimTypes.Name); var userId = info.Principal.FindFirstValue(ClaimTypes.NameIdentifier); - + var user = new IdentityUser { UserName = userName, Id = userId }; _userManager.UserValidators.Clear(); diff --git a/src/IdentityServerConfig.cs b/src/IdentityServerConfig.cs index fec35aa..16f80f1 100644 --- a/src/IdentityServerConfig.cs +++ b/src/IdentityServerConfig.cs @@ -1,6 +1,6 @@ -using System; +using System; using System.Collections.Generic; -using System.Linq; +using System.Linq; using IdentityServer4; using IdentityServer4.Models; diff --git a/src/Profile/SteamProfileService.cs b/src/Profile/SteamProfileService.cs index 9800ded..72195c8 100644 --- a/src/Profile/SteamProfileService.cs +++ b/src/Profile/SteamProfileService.cs @@ -35,7 +35,7 @@ namespace SteamOpenIdConnectProvider.Profile public SteamProfileService( UserManager userManager, IUserClaimsPrincipalFactory claimsFactory, - IConfiguration configuration, + IConfiguration configuration, HttpClient httpClient) { _userManager = userManager;