I have an HTTPS server (:wink:) that accepts two forms of traffic, unauthenticated and authenticated, and would like to use AllowAnyAnonymousOrAuthenticatedClient or similar to support both. However, I don't see a way to tell if client authentication was successful at all and/or call peer_certificates.
I have an HTTPS server (:wink:) that accepts two forms of traffic, unauthenticated and authenticated, and would like to use AllowAnyAnonymousOrAuthenticatedClient or similar to support both. However, I don't see a way to tell if client authentication was successful at all and/or call
peer_certificates
.I looked into
into_make_service_with_connect_info
but that accesses an&AddrStream
before the TLS handshake.Any thoughts on how mTLS could be made optional while letting the tower service know the client authentication status?
From the network perspective, I'd like:
On the Axum side, I'd like the following:
*the name
AcceptInfo
is just bikesheddingEdit: I no longer need this. Feel free to close it as not planned if you don't find it useful.