Skip to content

Commit

Permalink
Merge pull request #162 from v-fearam/update/libraries
Browse files Browse the repository at this point in the history
Update/libraries
  • Loading branch information
ckittel authored Dec 16, 2024
2 parents 955b30b + 71f99ca commit 8e94958
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions src/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public IActionResult Run([HttpTrigger(AuthorizationLevel.Function, "get")] HttpR
var principal = ClaimsPrincipalParser.Parse(req);
if (principal == null || !principal.IsAuthorizedByRoles([GetDeviceStatusRoleName], _logger))
{
return new UnauthorizedResult();
return new UnauthorizedResult();
}

string? deviceId = req.Query["deviceId"];
Expand Down
14 changes: 7 additions & 7 deletions src/DroneStatus/nodejs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/readme-backend-functionapps-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export API_MANAGEMENT_SERVICE=$(az deployment group show \
--query properties.outputs.apimGatewayServiceName.value \
--output tsv)
export API_POLICY_ID_V2="$(az resource show --resource-group $RESOURCEGROUP --resource-type Microsoft.ApiManagement/service --name $API_MANAGEMENT_SERVICE --query id --output tsv)/apis/dronedeliveryapiv2/policies/policy"
az resource create --id $API_POLICY_ID_V2 \
az resource create --id $API_POLICY_ID_V2 --api-version 2023-09-01-preview \
--properties "{
\"value\": \"<policies><inbound><base /><cors allow-credentials=\\\"true\\\"><allowed-origins><origin>$CLIENT_URL</origin></allowed-origins><allowed-methods><method>GET</method></allowed-methods><allowed-headers><header>*</header></allowed-headers></cors><validate-jwt header-name=\\\"Authorization\\\" failed-validation-httpcode=\\\"401\\\" failed-validation-error-message=\\\"Unauthorized. Access token is missing or invalid.\\\"><openid-config url=\\\"${ISSUER_URL}.well-known/openid-configuration\\\" /><required-claims><claim name=\\\"aud\\\"><value>$IDENTIFIER_URI</value></claim></required-claims></validate-jwt></inbound><backend><base /></backend><outbound><base /></outbound><on-error><base /></on-error></policies>\"
}"
Expand Down
2 changes: 1 addition & 1 deletion src/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export API_MANAGEMENT_SERVICE=$(az deployment group show \
--query properties.outputs.apimGatewayServiceName.value \
--output tsv)
export API_POLICY_ID="$(az resource show --resource-group $RESOURCEGROUP --resource-type Microsoft.ApiManagement/service --name $API_MANAGEMENT_SERVICE --query id --output tsv)/apis/dronedeliveryapiv1/policies/policy"
az resource create --id $API_POLICY_ID \
az resource create --id $API_POLICY_ID --api-version 2023-09-01-preview \
--properties "{
\"value\": \"<policies><inbound><base /><cors allow-credentials=\\\"true\\\"><allowed-origins><origin>$CLIENT_URL</origin></allowed-origins><allowed-methods><method>GET</method></allowed-methods><allowed-headers><header>*</header></allowed-headers></cors><validate-jwt header-name=\\\"Authorization\\\" failed-validation-httpcode=\\\"401\\\" failed-validation-error-message=\\\"Unauthorized. Access token is missing or invalid.\\\"><openid-config url=\\\"${ISSUER_URL}.well-known/openid-configuration\\\" /><required-claims><claim name=\\\"aud\\\"><value>$IDENTIFIER_URI</value></claim></required-claims></validate-jwt></inbound><backend><base /></backend><outbound><base /></outbound><on-error><base /></on-error></policies>\"
}"
Expand Down

0 comments on commit 8e94958

Please sign in to comment.