mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 09:56:22 +00:00
Automatic formatting changes
This commit is contained in:
parent
62dd979a80
commit
e8520a6128
3 changed files with 5 additions and 5 deletions
|
@ -41,7 +41,7 @@ namespace SteamOpenIdConnectProvider.Controllers
|
|||
public async Task<IActionResult> 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();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq;
|
||||
using IdentityServer4;
|
||||
using IdentityServer4.Models;
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace SteamOpenIdConnectProvider.Profile
|
|||
public SteamProfileService(
|
||||
UserManager<IdentityUser> userManager,
|
||||
IUserClaimsPrincipalFactory<IdentityUser> claimsFactory,
|
||||
IConfiguration configuration,
|
||||
IConfiguration configuration,
|
||||
HttpClient httpClient)
|
||||
{
|
||||
_userManager = userManager;
|
||||
|
|
Loading…
Reference in a new issue