I just released my first project on github.com. As mention in the headline, it is called Bazzline_Controller_Plugin_Auth. It is a simple plugin which tests if the called url is a "logged in user" only url or not. If it is "logged in only", the user is redirected to the login. The previously called url is saved in the session. After a successfull login, the user gets redirected to this saved url. All can be configured in a config file.
This plugin is only for simple access controll by "user is logged in" or "user is not logged in". The ACL stuff is still in the pipeline and should not - to follow the KISS principle - be inside an auth plugin.
While setting up this project on github, i had some problems while getting a valid connection to github.
I followed the howto but not "pressed enter" when asked for a file to store the key.
ssh -T [email protected]
But when i added the -i option like:
ssh -T [email protected] -i path/to/my/private/key
everything runs smoothly.
After a short term of searching, i found the ssh issues page on gitub.com. The simple solution is:
Create or open the file at ~/.ssh/config Add the following lines:Host github.com User git Hostname github.com PreferredAuthentications publickey IdentityFile /path/to/my/private/key
After that, the
git push -u origin masterruns without any errors.