mirror of
https://github.com/bitwarden/server.git
synced 2025-05-22 12:04:27 -05:00
fixes for preview deployment
This commit is contained in:
parent
c7496d2be2
commit
cdfa936f6b
@ -278,8 +278,9 @@ namespace Bit.Api
|
||||
app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
|
||||
{
|
||||
AllowedScopes = new string[] { "api" },
|
||||
Authority = env.IsProduction() ? "https://api.bitwarden.com" : "http://localhost:4000",
|
||||
RequireHttpsMetadata = env.IsProduction(),
|
||||
Authority = env.IsProduction() ? "https://api.bitwarden.com" : env.IsEnvironment("Preview") ?
|
||||
"https://bitwardenpreviewapi-j9dv6m.azurewebsites.net" : "http://localhost:4000",
|
||||
RequireHttpsMetadata = !env.IsDevelopment(),
|
||||
ApiName = "api",
|
||||
NameClaimType = ClaimTypes.Email,
|
||||
// Version "2" until we retire the old jwt scheme and replace it with this one.
|
||||
|
5
src/Api/settings.Preview.json
Normal file
5
src/Api/settings.Preview.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"globalSettings": {
|
||||
"baseVaultUri": "https://previewvault.bitwarden.com/#"
|
||||
}
|
||||
}
|
@ -22,7 +22,7 @@ BEGIN
|
||||
[Target].[SubvaultId] = [Source].[Id]
|
||||
AND [Target].[CipherId] = @CipherId
|
||||
WHEN NOT MATCHED BY TARGET
|
||||
AND [Source].[Id] IN (SELECT [SubvaultId] FROM [AvailableSubvaultsCTE]) THEN
|
||||
AND [Source].[Id] IN (SELECT [Id] FROM [AvailableSubvaultsCTE]) THEN
|
||||
INSERT VALUES
|
||||
(
|
||||
[Source].[Id],
|
||||
|
Loading…
x
Reference in New Issue
Block a user