Description
From @stevenroose on May 28, 2016 0:38
We are trying to package Gogs to work with YunoHost, but this issue affects anyone packaging Gogs automatic installation.
We want to enable LDAP authentication during installation, but when automating the installation, it is hard to inject the authentication config into the SQL table because the table is only initialized on the first run.
Since the app.ini
is the place we can manipulate Gogs configuration for automated installation, ideally authentication configuration should be here too.
Since I have no idea of how authentication is implemented in general, I don't know if there are arguments why authentication should be in SQL at all. If there are no fundamental arguments, I would be willing to try and migrate authentication config to app.ini
, making sure compatibility is maintained for upgrading users.
Copied from original issue: gogs/gogs#3142