Fast user authorization

everything. I installed Swift 1.7.4 and I want to add a new user to Swift, how can I do this? I found that in version 1.4.8 someone said that I should install swauth first, and I noticed that the Swift api also said that choose one authrize method, so should I install the authorization service first? I also found that tempauth middleware is in the proxy-server.conf file, can I use it to add a user and how?

+4
source share
1 answer

Yes. You can choose from swauth or tempauth. The biggest difference between the two auth systems is where they store user information.

Swauth stores user / password information in the fastest cluster. It uses a special container and stores every user information in it. Swauth provides a set of user management commands, such as swauth-add-user , swauth-prep , etc.

In tempauth, it stores user information in proxy-server.conf , so it is very easy to use. In your proxy-server.conf enable tempauth in the pipeline and put the user information in the tempauth section. For instance,

 [pipeline:main] pipeline = healthcheck cache tempauth proxy-server [filter:tempauth] use = egg:swift#tempauth user_admin_admin = admin .admin user_hi_hihi = testing 

Then you will have two users. One of them is admin:admin , whose password is admin . The other is hi:hihi , whose password is testing .

+8
source

Source: https://habr.com/ru/post/1483702/


All Articles