Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the users attribute #39

Open
palourde opened this issue Jun 29, 2015 · 2 comments
Open

Support the users attribute #39

palourde opened this issue Jun 29, 2015 · 2 comments

Comments

@palourde
Copy link
Contributor

A new attribute users is available which allow to define multiple users on the configuration file: http://docs.uchiwa.io/en/latest/configuration/uchiwa/#multiple-users-with-simple-authentication

@obazoud
Copy link

obazoud commented Jan 19, 2016

+1

@obazoud
Copy link

obazoud commented Jan 19, 2016

You can define multiple users like this:

node.default['uchiwa']['settings']['users'] = [
      {
        "username" : "admin",
        "password": "secret1",
        "role": {
          "readonly": false
        }
      },
      {
        "username" : "guest",
        "password": "secret1",
        "role": {
          "readonly": true
        }
      }
    ]

Note that node['uchiwa']['settings']['pass'] is overwritten by this configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants