mirror of
https://github.com/bitwarden/server.git
synced 2025-04-18 19:48:12 -05:00
init OpenIdConnectConfiguration
This commit is contained in:
parent
9b02c2adb5
commit
31e4db250b
@ -15,6 +15,7 @@ using System.Threading.Tasks;
|
|||||||
using IdentityServer4.Stores;
|
using IdentityServer4.Stores;
|
||||||
using Bit.Core.IdentityServer;
|
using Bit.Core.IdentityServer;
|
||||||
using IdentityServer4.Services;
|
using IdentityServer4.Services;
|
||||||
|
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
|
||||||
|
|
||||||
namespace Bit.Identity
|
namespace Bit.Identity
|
||||||
{
|
{
|
||||||
@ -88,8 +89,10 @@ namespace Bit.Identity
|
|||||||
options.Authority = globalSettings.BaseServiceUri.Sso;
|
options.Authority = globalSettings.BaseServiceUri.Sso;
|
||||||
options.MetadataAddress = globalSettings.BaseServiceUri.InternalSso +
|
options.MetadataAddress = globalSettings.BaseServiceUri.InternalSso +
|
||||||
"/.well-known/openid-configuration";
|
"/.well-known/openid-configuration";
|
||||||
options.Configuration.AuthorizationEndpoint = globalSettings.BaseServiceUri.Sso
|
options.Configuration = new OpenIdConnectConfiguration
|
||||||
+ "/connect/authorize";
|
{
|
||||||
|
AuthorizationEndpoint = globalSettings.BaseServiceUri.Sso + "/connect/authorize"
|
||||||
|
};
|
||||||
options.RequireHttpsMetadata = !Environment.IsDevelopment() &&
|
options.RequireHttpsMetadata = !Environment.IsDevelopment() &&
|
||||||
globalSettings.BaseServiceUri.InternalIdentity.StartsWith("https");
|
globalSettings.BaseServiceUri.InternalIdentity.StartsWith("https");
|
||||||
options.ClientId = "oidc-identity";
|
options.ClientId = "oidc-identity";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user