You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-notes/6.0/known-issues.md
+34Lines changed: 34 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,40 @@ The first time SPA apps are run, the authority for the spa proxy might be incorr
59
59
60
60
When using localdb (default when creating projects in VS), the normal database apply migrations error page will not be displayed correctly due to the spa proxy. This will result in errors when going to the fetch data page. Apply the migrations via 'dotnet ef database update' to create the database.
61
61
62
+
### SPA template issues with Individual authentication when running in production
63
+
64
+
SPA apps on Azure App Service with all the following:
65
+
* Individual authentication and requires login for every page.
66
+
* A custom domain such as `https://MyDomain.com`:
67
+
68
+
Sometimes return the following error `WWW-Authenticate: Bearer error="invalid_token", error_description="The issuer 'https://MyDomain.com' is invalid"`. If the app is accessed from the Azure DNS (MyDomain.azurewebsites.net), authentication is successful. Subsequent requests to `https://MyDomain.com` succeed. Alternatively, stopping and starting the app, enables authentication to succeed. This error can occur with [`Always On`](/azure/app-service/configure-common) set to `true` or `false`.
69
+
70
+
To prevent this problem without having to stop and restart the app:
71
+
72
+
1. Add a new app setting which contains the target DNS address. For example, create `IdentityServer:IssuerUri` with value `https://MyDomain.com/`
73
+
1. Add the following code to the app:
74
+
```
75
+
builder.Services.AddIdentityServer(options =>
76
+
{
77
+
if (!string.IsNullOrEmpty(settings.IdentityServer.IssuerUri))
0 commit comments