Uses of Package
com.irurueta.authserver.authorization.api.web.x509
Packages that use com.irurueta.authserver.authorization.api.web.x509
Package
Description
Client authentication at the token endpoints beyond a shared secret:
private_key_jwt with replay protection
(RFC 7523) and mutual TLS, tls_client_auth and self_signed_tls_client_auth (RFC 8705).X.509 client certificate authentication: a certificate presented on a dedicated TLS port, or forwarded by a trusted
reverse proxy in a header, signs in the user it is bound to (by the SHA-256 fingerprint of the certificate) at
POST /login/x509, the form of the login page, with the CSRF token.-
Classes in com.irurueta.authserver.authorization.api.web.x509 used by com.irurueta.authserver.authorization.api.web.clientauthClassDescriptionConfiguration of the sign-in with a client certificate (
authserver.x509.*). -
Classes in com.irurueta.authserver.authorization.api.web.x509 used by com.irurueta.authserver.authorization.api.web.x509ClassDescriptionMaps the certificate bindings of the domain onto the DTO generated from the contract.Takes the SHA-256 fingerprint of the client certificate as the principal, as 64 lower case hexadecimal digits, which is what a binding stores and what
ResolveCertificateLoginUseCaselooks up.Provides the server certificate of the dedicated TLS port when thedevprofile is active and none is configured, so a developer does not have to create one: a self-signed certificate forlocalhostis generated once per machine with the JDK'skeytool, stored in a key store under~/.irurueta-auth-server/that only the owner can read (its password in a file next to it, asDevKeyEncryptionSecretkeeps its secret) and reused at every start.Reads the client certificate a reverse proxy that terminates TLS forwards in a header and leaves it where the servlet container leaves a certificate of its own, in thejakarta.servlet.request.X509Certificaterequest attribute, so the same X.509 filter and principal extractor serve both transports.Thrown when the value sent to bind a certificate is not a single PEM X.509 certificate within its validity period.Reads the certificate sent to bind it to an account: exactly one X.509 certificate in PEM form, within its validity period, with a subject.What a binding keeps of a certificate sent to the account API: its fingerprint, which identifies it, and its subject, which only tells the bindings apart.Completes a sign-in with a client certificate.Refuses to start when a certificate may be forwarded in a header while the server rewrites the address of its clients from the forwarded headers.The X.509 filter of the sign-in path.Contributes the sign-in with a client certificate to the login page: a form with one button that posts, with the CSRF token, toPOST /login/x509.Configuration of the sign-in with a client certificate (authserver.x509.*).Adds the dedicated TLS port that requests a client certificate, whenauthserver.x509.portis set.The key store that holds the server certificate of the dedicated TLS port.Decides which key store holds the server certificate of the dedicated TLS port: the configured one or, under thedevprofile and with none configured, the generated one.Loads the account a client certificate is bound to.