module

Exu::Web::Helpers::AuthHelper

Helper functions for client SSL certificate DN and CN parsing.

Class methods

extract_cn(dn : String) : String

Extracts username from Common Name (CN) attribute in X.509 Subject DN

Source
extract_username_from_dn(dn : String) : String | Nil

Parses CN=<username> from Subject DN string

Source
get_client_dn(env : HTTP::Server::Context) : String

Retrieves client identity passed by reverse proxy via mTLS header

Source