Fixed a silent login callback error and reworked project structure.

This commit is contained in:
2021-07-14 01:15:04 -05:00
parent bad22090a3
commit 840b59fcba
24 changed files with 72 additions and 63 deletions

View File

@@ -2,11 +2,11 @@ using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Props.Data;
using Props.Models;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Props.Data;
using Props.Models;
namespace Props
{
@@ -35,9 +35,11 @@ namespace Props
services.AddIdentityServer()
.AddApiAuthorization<ApplicationUser, ApplicationDbContext>(
options => {
options.Clients.AddIdentityServerSPA("Props", spa => {
spa.WithRedirectUri("/authentication/silent-login-callback.html");
options =>
{
options.Clients.AddIdentityServerSPA("Props", spa =>
{
spa.WithRedirectUri("/silent/login-callback");
spa.WithRedirectUri("/authentication/login-callback");
spa.WithLogoutRedirectUri("/authentication/logout-callback");
});