Skip to content

How to implement authentication and authorization? #244

Answered by BiagioFesta
caniko asked this question in Q&A
Discussion options

You must be logged in to vote

wtransport is a transport protocol (like WebSocket) and doesn’t directly handle authentication (authn) or authorization (authz). These should be implemented in the application layer.

wtransport works over HTTP/3, built on QUIC, which uses TLS 1.3 for encryption and server authentication. If you need client certificate-based auth (e.g., mTLS), you can configure this via ServerConfigBuilder::with_custom_tls. However, this is for transport-level security and not application-level authn/authz.

For authn, you can use protocols like JSON Web Tokens (JWT) by passing a token in the HTTP/3 handshake headers or in the first message of the session. OAuth 2.0 or OpenID Connect can also be used to aut…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@caniko
Comment options

Answer selected by caniko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants