Azure / Azure/static-web-apps

OIDC token issue - same code works in Azure Functions

Open
#313 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Hello,
really enjoying Static Web Apps, but I have run into an issues and I am not sure what my issue is, I am trying to get a React/Static Web App with Auth0 authentication working. It all work perfectly on my machine, however when I deploy to Static Web Apps I get "secret or public key must be provided" when calling the API with the correct Bearer Token.
I have deployed the same code to Azure Functions in both Linux and Windows and it works fine.

Static Web App repo - https://github.com/OpenSaasAU/azure-webapps-auth0-api
Deployed app - https://auth0-webapp-test.opensaas.com.au

Function App code which is working fine when deployed to a Azure Function - https://github.com/OpenSaasAU/azure-function-auth0-api
Deployed Azure Function - https://opensaas-auth0-function.azurewebsites.net/api/GetMessage

The setting are identical between both, I am just not getting much info from Static Web Apps to know what is happening.
Thanks

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.