1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

set secret for dev

This commit is contained in:
Kyle Spearrin 2019-02-28 00:03:11 -05:00
parent 57ebe0de1a
commit b6696df055

View File

@ -87,7 +87,7 @@ namespace Bit.Core.IdentityServer
{ {
ClientId = $"organization.{org.Id}", ClientId = $"organization.{org.Id}",
RequireClientSecret = true, RequireClientSecret = true,
ClientSecrets = { new Secret(org.Id.ToString().Sha256()) }, // TODO: org.ApiKey ClientSecrets = { new Secret("secret".Sha256()) }, // TODO: org.ApiKey
AllowedScopes = new string[] { "api.organization" }, AllowedScopes = new string[] { "api.organization" },
AllowedGrantTypes = GrantTypes.ClientCredentials, AllowedGrantTypes = GrantTypes.ClientCredentials,
AccessTokenLifetime = 3600 * 1, AccessTokenLifetime = 3600 * 1,