Azure / Azure/static-web-apps

Requests seems to randomly not be logged in

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

Description

We're experiencing that requests (sometimes up to 50%) made from the frontend forget that a user is logged in.

For endpoints that are explicitly authenticated in _staticwebapp.config.json_ this results in a redirect (due to fallback on 401 configuration) and for endpoints that allow anonymous there is no _x-ms-client-principal_ header once the backend is reached.

For the _.auth/me_ it either returns the expected JSON object or our _index.html_ (without redirecting).

I have no idea how to reproduce it. We've only experienced on one SWA instance and we have quite a few, but we experience it on all environments of that specific instance.

This SWA is a bit special, compared to our other instances, in that it is using an App Service as a linked API and custom Azure AD providers. But other than that nothing special.

I'm really at a loss as to what to try.

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.