Automatic formatting changes

This commit is contained in:
Mark Ettema 2021-05-09 20:37:16 +07:00
parent 62dd979a80
commit e8520a6128
3 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ namespace SteamOpenIdConnectProvider.Controllers
public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null) public async Task<IActionResult> ExternalLoginCallback(string returnUrl = null, string remoteError = null)
{ {
returnUrl ??= Url.Content("~/"); returnUrl ??= Url.Content("~/");
if (remoteError != null) if (remoteError != null)
{ {
throw new Exception($"Error from external provider: {remoteError}"); throw new Exception($"Error from external provider: {remoteError}");
@ -62,7 +62,7 @@ namespace SteamOpenIdConnectProvider.Controllers
var userName = info.Principal.FindFirstValue(ClaimTypes.Name); var userName = info.Principal.FindFirstValue(ClaimTypes.Name);
var userId = info.Principal.FindFirstValue(ClaimTypes.NameIdentifier); var userId = info.Principal.FindFirstValue(ClaimTypes.NameIdentifier);
var user = new IdentityUser { UserName = userName, Id = userId }; var user = new IdentityUser { UserName = userName, Id = userId };
_userManager.UserValidators.Clear(); _userManager.UserValidators.Clear();

View file

@ -1,6 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using IdentityServer4; using IdentityServer4;
using IdentityServer4.Models; using IdentityServer4.Models;

View file

@ -35,7 +35,7 @@ namespace SteamOpenIdConnectProvider.Profile
public SteamProfileService( public SteamProfileService(
UserManager<IdentityUser> userManager, UserManager<IdentityUser> userManager,
IUserClaimsPrincipalFactory<IdentityUser> claimsFactory, IUserClaimsPrincipalFactory<IdentityUser> claimsFactory,
IConfiguration configuration, IConfiguration configuration,
HttpClient httpClient) HttpClient httpClient)
{ {
_userManager = userManager; _userManager = userManager;