Skip to content

Blazor debug/trace auth logging for 7.0 #27173

@guardrex

Description

@guardrex

WASM debug/trace auth logging for 7.0 or later

Note to self: Place in the logging topic and cross-link from the WASM security node, especially in the Troubleshooting sections of each doc.

For example ...

#if DEBUG
    builder.Logging.AddFilter(
        "Microsoft.AspNetCore.Components.WebAssembly.Authentication", 
        LogLevel.Debug);
#endif

... or in appsettings.Development.json ...

{
  "DetailedErrors": true,
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information",
      "Microsoft.AspNetCore.Components.WebAssembly.Authentication": "Debug"
    }
  }
}

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions