Browse Source

Remove the slash at the end of the url.

pull/6230/head
maliming 6 years ago
parent
commit
4187791fe9
  1. 8
      templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/IdentityServer/IdentityServerDataSeedContributor.cs
  2. 8
      templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/IdentityServer/IdentityServerDataSeedContributor.cs

8
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Domain/IdentityServer/IdentityServerDataSeedContributor.cs

@ -159,7 +159,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
redirectUri: $"{webClientRootUrl}signin-oidc", redirectUri: $"{webClientRootUrl}signin-oidc",
postLogoutRedirectUri: $"{webClientRootUrl}signout-callback-oidc", postLogoutRedirectUri: $"{webClientRootUrl}signout-callback-oidc",
frontChannelLogoutUri: $"{webClientRootUrl}Account/FrontChannelLogout", frontChannelLogoutUri: $"{webClientRootUrl}Account/FrontChannelLogout",
corsOrigins: new[] { webClientRootUrl } corsOrigins: new[] { webClientRootUrl.RemovePostFix("/") }
); );
} }
@ -177,7 +177,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
requireClientSecret: false, requireClientSecret: false,
redirectUri: webClientRootUrl, redirectUri: webClientRootUrl,
postLogoutRedirectUri: webClientRootUrl, postLogoutRedirectUri: webClientRootUrl,
corsOrigins: new[] { webClientRootUrl } corsOrigins: new[] { webClientRootUrl.RemovePostFix("/") }
); );
} }
@ -195,7 +195,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
requireClientSecret: false, requireClientSecret: false,
redirectUri: $"{blazorRootUrl}/authentication/login-callback", redirectUri: $"{blazorRootUrl}/authentication/login-callback",
postLogoutRedirectUri: $"{blazorRootUrl}/authentication/logout-callback", postLogoutRedirectUri: $"{blazorRootUrl}/authentication/logout-callback",
corsOrigins: new[] { blazorRootUrl } corsOrigins: new[] { blazorRootUrl.RemovePostFix("/") }
); );
} }
@ -212,7 +212,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
secret: configurationSection["MyProjectName_Swagger:ClientSecret"]?.Sha256(), secret: configurationSection["MyProjectName_Swagger:ClientSecret"]?.Sha256(),
requireClientSecret: false, requireClientSecret: false,
redirectUri: $"{swaggerRootUrl}/swagger/oauth2-redirect.html", redirectUri: $"{swaggerRootUrl}/swagger/oauth2-redirect.html",
corsOrigins: new[] { swaggerRootUrl } corsOrigins: new[] { swaggerRootUrl.RemovePostFix("/") }
); );
} }
} }

8
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.IdentityServer/IdentityServer/IdentityServerDataSeedContributor.cs

@ -159,7 +159,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
redirectUri: $"{webClientRootUrl}signin-oidc", redirectUri: $"{webClientRootUrl}signin-oidc",
postLogoutRedirectUri: $"{webClientRootUrl}signout-callback-oidc", postLogoutRedirectUri: $"{webClientRootUrl}signout-callback-oidc",
frontChannelLogoutUri: $"{webClientRootUrl}Account/FrontChannelLogout", frontChannelLogoutUri: $"{webClientRootUrl}Account/FrontChannelLogout",
corsOrigins: new[] { webClientRootUrl } corsOrigins: new[] { webClientRootUrl.RemovePostFix("/") }
); );
} }
@ -177,7 +177,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
requireClientSecret: false, requireClientSecret: false,
redirectUri: webClientRootUrl, redirectUri: webClientRootUrl,
postLogoutRedirectUri: webClientRootUrl, postLogoutRedirectUri: webClientRootUrl,
corsOrigins: new[] { webClientRootUrl } corsOrigins: new[] { webClientRootUrl.RemovePostFix("/") }
); );
} }
@ -195,7 +195,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
requireClientSecret: false, requireClientSecret: false,
redirectUri: $"{blazorRootUrl}/authentication/login-callback", redirectUri: $"{blazorRootUrl}/authentication/login-callback",
postLogoutRedirectUri: $"{blazorRootUrl}/authentication/logout-callback", postLogoutRedirectUri: $"{blazorRootUrl}/authentication/logout-callback",
corsOrigins: new[] { blazorRootUrl } corsOrigins: new[] { blazorRootUrl.RemovePostFix("/") }
); );
} }
@ -212,7 +212,7 @@ namespace MyCompanyName.MyProjectName.IdentityServer
secret: configurationSection["MyProjectName_Swagger:ClientSecret"]?.Sha256(), secret: configurationSection["MyProjectName_Swagger:ClientSecret"]?.Sha256(),
requireClientSecret: false, requireClientSecret: false,
redirectUri: $"{swaggerRootUrl}/swagger/oauth2-redirect.html", redirectUri: $"{swaggerRootUrl}/swagger/oauth2-redirect.html",
corsOrigins: new[] { swaggerRootUrl } corsOrigins: new[] { swaggerRootUrl.RemovePostFix("/") }
); );
} }
} }

Loading…
Cancel
Save