mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
no port for issuer
This commit is contained in:
@ -234,6 +234,7 @@ namespace Bit.Core.Utilities
|
|||||||
public static IIdentityServerBuilder AddCustomIdentityServerServices(
|
public static IIdentityServerBuilder AddCustomIdentityServerServices(
|
||||||
this IServiceCollection services, IHostingEnvironment env, GlobalSettings globalSettings)
|
this IServiceCollection services, IHostingEnvironment env, GlobalSettings globalSettings)
|
||||||
{
|
{
|
||||||
|
var issuerUri = new Uri(globalSettings.BaseServiceUri.InternalIdentity);
|
||||||
var identityServerBuilder = services
|
var identityServerBuilder = services
|
||||||
.AddIdentityServer(options =>
|
.AddIdentityServer(options =>
|
||||||
{
|
{
|
||||||
@ -243,7 +244,7 @@ namespace Bit.Core.Utilities
|
|||||||
options.Endpoints.EnableUserInfoEndpoint = false;
|
options.Endpoints.EnableUserInfoEndpoint = false;
|
||||||
options.Endpoints.EnableCheckSessionEndpoint = false;
|
options.Endpoints.EnableCheckSessionEndpoint = false;
|
||||||
options.Endpoints.EnableTokenRevocationEndpoint = false;
|
options.Endpoints.EnableTokenRevocationEndpoint = false;
|
||||||
options.IssuerUri = globalSettings.BaseServiceUri.InternalIdentity;
|
options.IssuerUri = $"{issuerUri.Scheme}://{issuerUri.Host}";
|
||||||
options.Caching.ClientStoreExpiration = new TimeSpan(0, 5, 0);
|
options.Caching.ClientStoreExpiration = new TimeSpan(0, 5, 0);
|
||||||
})
|
})
|
||||||
.AddInMemoryCaching()
|
.AddInMemoryCaching()
|
||||||
|
Reference in New Issue
Block a user