Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
363 views
in Technique[技术] by (71.8m points)

nats.io - NATS中的动态用户管理(Dynamic user management in NATS)

I think about creating a new solution based on NATS and so far only have two open questions left.

(我考虑基于NATS创建一个新的解决方案,到目前为止只剩下两个悬而未决的问题。)

In my scenario I need clients to authenticate with the server and of the possible mechanisms user+pass, token and JWT I would like to go for tokens or (least preferred) user+pass.

(在我的场景中,我需要客户端与服务器以及可能要使用的机制user + pass,令牌和JWT进行身份验证,我想使用令牌或(最不推荐的)user + pass。)

In the docs I saw that it is possible to crypt passwords and to store credentials of multiple users.

(在文档中,我看到可以加密密码并存储多个用户的凭证。)

But what I could not find is information about:

(但是我找不到以下信息:)

  • can tokens be stored securely ?

    (令牌可以安全存储吗?)

  • how can I add new users without reloading the server ?

    (如何在不重新加载服务器的情况下添加新用户?)

  ask by Marged translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You can also store bcrypted tokens

(您还可以存储加密的令牌)

Also you can also reload the config by running:

(另外,您还可以通过运行以下命令重新加载配置:)

nats-server -- signal reload

(nats-server- 信号重新加载)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...