accessing tls session from twisted web

Ilja Livenson <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <CAF8QyE8U30jsYbwM5kwuu_yL5TfUVqUaR-Mz-F5ae5BP7rwtoQ@mail.gmail.com>
Hi, all

I have a twisted web server, exposing https interface. What I'm trying
to do now is to support usage of two-way tls authentication and use
data from the client certificate as a seed for authenticated avatar.
Any hints as to how to do that in the best way? I guess it should be
done before Realm's requestAvatar method is called?

thanks for your input!

Ilya

PS. Roughly speaking the code for that part looks like this:

wrapper = guard.HTTPAuthSessionWrapper(Portal(SimpleRealm(),
used_checkers), authn_methods)
reactor.listenSSL(8080, server.Site(resource=wrapper), contextFactory
= sslContext)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.