Add documentation for using ichain in test mode

Removed houndp-ci because we are not using it anymore.
Removed private links. Ex: [OSEM-admins](https://github.com/orgs/openSUSE/teams/osem-admins)
is accessible only to members ot osem-admins team.
This commit is contained in:
Aditya Prakash 2016-04-07 11:10:54 +05:30
parent 2d3ea22fd3
commit d770533bdc
3 changed files with 26 additions and 15 deletions

View file

@ -90,3 +90,17 @@ Open a separate terminal and go into the directory where the rails app is presen
```
rake jobs:work
```
### Using iChain in test mode
[devise_ichain_authenticatable](https://github.com/openSUSE/devise_ichain_authenticatable) comes with
test mode, which can be useful in development phase in which an iChain proxy is not usually configured or even available. You can enable ichain authentication by setting `CONFIG['authentication']['ichain']['enabled']` equal to `true` in `config.yml` file. You would also need to set following options in `devise.rb`:
```Ruby
# Activate the test mode
config.ichain_test_mode = true
# 'testuser' user will be permanently signed in.
config.ichain_force_test_username = "testuser"
# set email of 'testuser'
config.ichain_force_test_attributes = {:email => "testuser@example.com"}
```