Fixed a silent login callback error and reworked project structure.
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user