Skip to content

Commit

Permalink
one config
Browse files Browse the repository at this point in the history
  • Loading branch information
wrutkowski-xebia committed Apr 15, 2024
1 parent cd2b9df commit 91d4c70
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 74 deletions.
8 changes: 0 additions & 8 deletions src/SingleWebApplication/SingleWebApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,4 @@
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
</ItemGroup>

<ItemGroup>
<Content Update="swa-db-connections\staticwebapp.database.config.auth.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/SingleWebApplication/run_dab_auth_docker.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker run -it --rm -v "%cd%\swa-db-connections:/App/swa-db-connections" -p 5033:5000 --env DATABASE_CONNECTION_STRING="%DATABASE_CONNECTION_STRING%" mcr.microsoft.com/azure-databases/data-api-builder:0.10.21 --ConfigFileName ./swa-db-connections/staticwebapp.database.config.auth.json
docker run -it --rm -v "%cd%\swa-db-connections:/App/swa-db-connections" -p 5033:5000 --env DATABASE_CONNECTION_STRING="%DATABASE_CONNECTION_STRING%" mcr.microsoft.com/azure-databases/data-api-builder:0.10.21 --ConfigFileName ./swa-db-connections/staticwebapp.database.config.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
"allow-credentials": false
},
"authentication": {
"provider": "StaticWebApps"
"provider": "AzureAD",
"jwt": {
"audience": "de4b5da5-3135-4948-aa02-342ac1d8e8fc",
"issuer": "https://login.microsoftonline.com/b3e5a293-6975-4239-9637-c963e8d90b7a/v2.0"
}
},
"mode": "development"
},
Expand All @@ -44,6 +48,17 @@
"role": "anonymous"
}
]
},
"Product": {
"source": "SalesLT.Product",
"permissions": [
{
"actions": [ "*" ],
"role": "Sample.Role"
}
]
}
}
}


0 comments on commit 91d4c70

Please sign in to comment.