mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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:
parent
2d3ea22fd3
commit
d770533bdc
3 changed files with 26 additions and 15 deletions
14
INSTALL.md
14
INSTALL.md
|
|
@ -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"}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue