{"action":"created","issue":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/183","repository_url":"https://api.github.com/repos/go-gitea/gitea","labels_url":"https://api.github.com/repos/go-gitea/gitea/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/183/comments","events_url":"https://api.github.com/repos/go-gitea/gitea/issues/183/events","html_url":"https://github.com/go-gitea/gitea/issues/183","id":189686131,"number":183,"title":"Allow authentication to be set in app.ini / migrate all authentication to app.ini","user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars.githubusercontent.com/u/853468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-16T12:15:10Z","updated_at":"2016-11-16T12:15:15Z","closed_at":null,"body":"_From @stevenroose on May 28, 2016 0:38_\n\nWe are trying to [package](https://github.com/YunoHost-Apps/gogs_ynh) Gogs to work with [YunoHost](https://yunohost.org/), but this issue affects anyone packaging Gogs automatic installation.\n\nWe 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.\nSince the `app.ini` is the place we can manipulate Gogs configuration for automated installation, ideally authentication configuration should be here too.\n\nSince 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.\n\n\n_Copied from original issue: gogits/gogs#3142_"},"comment":{"url":"https://api.github.com/repos/go-gitea/gitea/issues/comments/260931810","html_url":"https://github.com/go-gitea/gitea/issues/183#issuecomment-260931810","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/183","id":260931810,"user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars.githubusercontent.com/u/853468?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T12:15:14Z","updated_at":"2016-11-16T12:15:14Z","body":"_From @Unknwon on July 8, 2016 13:6_\n\n@jerrykan good point, but I think we probably should just make a new file named `auth_sources.ini` or `auth_sources.conf`?"}}
{"actor":{"display_login":"stevenroose"}}