mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 18:06: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)
|
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();
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue