-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Description
Description
After going through the BlazorWebAssemblyStandaloneWithIdentity example, which works great, I want to make sure ASP.NET Core Identity with Cookie Authentication is still the right choice after deploying this to Azure.
Specifically, I have deployed my apps, following the approach in this example, like this:
- Blazor WASM standalone app hosted in Azure Static Web App (https://brave-field-0f649a310.4.azurestaticapps.net)
- ASP.NET Core API hosted in Azure App Service (https://gamestore01.azurewebsites.net)
The apps work mostly without issues in Azure, but I did have to add this to my API for cookies to work properly:
builder.Services.ConfigureApplicationCookie(options =>
{
options.Cookie.SameSite = SameSiteMode.None;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
});
I want to make sure ASP.NET Core Identity is the recommended approach in this scenario, as opposed to using an OIDC server. I went through the guidance on this official doc and after following this diagram:
...it is not clear to me if my Blazor WASM standalone app, which lives in Azure Static Web App, should be classified as external or internal, which is the first decision point. I own both the API and the Blazor app, but it's not like they live in the same domain (given the different URLs provided by App Service and Static App).
Could you please clarify if the approach in the BlazorWebAssemblyStandaloneWithIdentity sample is recommended when deploying to Azure App Service + Azure Static Web App?
Page URL
Content source URL
Document ID
c4e6ec41-7bea-e600-6473-c5c870aab082
Article author
Metadata
Metadata
Assignees
Labels
Type
Projects
Status