I am getting a new behavior that after a good auth session backstage with a hard refresh goes back through auth again as if I had logged out.
The console error shows a 401 to this route:
/api/auth/microsoft/refresh?optional&env=development
The environment is not development it is our staging environment and I am curious if this behavior is due to our app-copnfig.yaml file containing:
auth:
see https://backstage.io/docs/auth/ to learn about auth providers
environment: development
providers:
microsoft:
development:
We have one app-config.yaml that we transform the contents via env vars at runtime. I wasn't sure if that mattered at all since the what should matter is:
development:
clientId: ${AUTH_MICROSOFT_CLIENT_ID}
clientSecret: ${AUTH_MICROSOFT_CLIENT_SECRET}
tenantId: ${AUTH_MICROSOFT_TENANT_ID}