private static string GetRedirectionUrl(
            Microsoft.AspNetCore.Http.HttpRequest request,
            IdentityServerEndPoints identityServerEndPoints)
        {
            var uri        = request.GetAbsoluteUriWithVirtualPath();
            var partialUri = Constants.MappingIdentityServerEndPointToPartialUrl[identityServerEndPoints];

            return(uri + partialUri);
        }
Exemple #2
0
        private static string GetRedirectionUrl(Microsoft.AspNetCore.Http.HttpRequest request, string amr, IdentityServerEndPoints identityServerEndPoints)
        {
            var uri        = request.GetAbsoluteUriWithVirtualPath();
            var partialUri = Constants.MappingIdentityServerEndPointToPartialUrl[identityServerEndPoints];

            if (!string.IsNullOrWhiteSpace(amr) && identityServerEndPoints != IdentityServerEndPoints.ConsentIndex && identityServerEndPoints != IdentityServerEndPoints.FormIndex)
            {
                partialUri = "/" + amr + partialUri;
            }

            return(uri + partialUri);
        }