scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
831 stars 90 forks source link

Add Apache REMOTE_USER support and/or client certificate authentication #108

Open akrus opened 8 years ago

akrus commented 8 years ago

Hi!

Really excited to see such wiki software, looks promising :)

We are using client certificates instead of passwords for auth everywhere. Unfortunately, I'm a beginner with Python, but this should be relatively easy as in Apache it's possible to use: SSLUsername SSL_CLIENT_S_DN_CN which will send this as REMOTE_USER to application (any header can be used actually). Or by default it's just SSL_CLIENT_S_DN_CN header. Also currently username for registration can be only alphanumeric, but I've modified it to 'Name Surname' in database and it works fine so far. Is there any reason for this? Maybe it can be changed as well?

Thanks in advance.