From 2dbefdbfb8906b44e9102cbe365371d49c983b2a Mon Sep 17 00:00:00 2001 From: Silvino Escalona Date: Tue, 1 Dec 2020 12:35:29 -0400 Subject: [PATCH] Allow multiple redirect urls --- src/IdentityServerConfig.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/IdentityServerConfig.cs b/src/IdentityServerConfig.cs index a127b61..fec35aa 100644 --- a/src/IdentityServerConfig.cs +++ b/src/IdentityServerConfig.cs @@ -1,4 +1,6 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; +using System.Linq; using IdentityServer4; using IdentityServer4.Models; @@ -20,7 +22,7 @@ namespace SteamOpenIdConnectProvider }, // where to redirect to after login - RedirectUris = { redirectUri }, + RedirectUris = redirectUri.Split(",").Select(x => x.Trim()).ToArray(), // where to redirect to after logout PostLogoutRedirectUris = { logoutRedirectUri },