Tyson Gibby
Tyson Gibby

Reputation: 4660

How to read client certificate data from blazor web assembly?

I am creating an ASP.Net Core 6 Blazor Web Assembly application that runs in an internal network. Users have already been authenticated before arriving at my application. I need to read the information from their X509 client certificate.

In a server application I could do this using HTTPContext. However, HTTPContext does not exist in a Web Assembly and I haven't yet been able to find an alternate way to do this yet.

How is this done in Blazor Web Assembly (WASM)?

Upvotes: 0

Views: 792

Answers (1)

AnEmptyBox
AnEmptyBox

Reputation: 11

In a Blazor WebAssembly (WASM) application, you cannot directly access the client certificate as you would do in a server application using HttpContext. However, you can set up a secure communication channel between your Blazor WASM application and a Blazor server.

Here is some that may help you set up that communication channel: Blazor & Custom Certificates

Upvotes: 1

Related Questions