mirror of
https://github.com/taigrr/nats.docs
synced 2025-01-18 04:03:23 -08:00
updating docs
This commit is contained in:
@@ -2301,8 +2301,8 @@
|
||||
|
||||
<section class="normal markdown-section">
|
||||
|
||||
<h1 id="username-and-password"><a name="username-and-password" class="plugin-anchor" href="#username-and-password"><i class="fa fa-link" aria-hidden="true"></i></a>Username and Password</h1>
|
||||
<p>You can authenticate one or more clients using username and passwords; this enables you to have greater control over the management and issuing of credential secrets.</p>
|
||||
<h2 id="username-and-password"><a name="username-and-password" class="plugin-anchor" href="#username-and-password"><i class="fa fa-link" aria-hidden="true"></i></a>Username and Password</h2>
|
||||
<p>You can authenticate one or more clients using username and passwords; this enables you to have greater control over the management and issuance of credential secrets.</p>
|
||||
<p>For a single user:</p>
|
||||
<pre class="language-"><code>authorization: {
|
||||
user: a,
|
||||
@@ -2317,7 +2317,7 @@
|
||||
{user: b, password: a}
|
||||
]
|
||||
}
|
||||
</code></pre><h2 id="bcrypted-passwords"><a name="bcrypted-passwords" class="plugin-anchor" href="#bcrypted-passwords"><i class="fa fa-link" aria-hidden="true"></i></a>Bcrypted Passwords</h2>
|
||||
</code></pre><h3 id="bcrypted-passwords"><a name="bcrypted-passwords" class="plugin-anchor" href="#bcrypted-passwords"><i class="fa fa-link" aria-hidden="true"></i></a>Bcrypted Passwords</h3>
|
||||
<p>Username/password also supports bcrypted passwords using the <a href="../nats_tools/mkpasswd.html"><code>mkpasswd</code></a> tool. Simply replace the clear text password with the bcrypted entries:</p>
|
||||
<pre class="language-"><code>> mkpasswd
|
||||
ass: (Uffs#rG42PAu#Oxi^BNng
|
||||
@@ -2329,7 +2329,7 @@ bcrypt hash: $2a$11$V1qrpBt8/SLfEBr4NJq4T.2mg8chx8.MTblUiTBOLV3MKDeAy.f7u
|
||||
...
|
||||
]
|
||||
}
|
||||
</code></pre><h2 id="reloading-a-configuration"><a name="reloading-a-configuration" class="plugin-anchor" href="#reloading-a-configuration"><i class="fa fa-link" aria-hidden="true"></i></a>Reloading a Configuration</h2>
|
||||
</code></pre><h3 id="reloading-a-configuration"><a name="reloading-a-configuration" class="plugin-anchor" href="#reloading-a-configuration"><i class="fa fa-link" aria-hidden="true"></i></a>Reloading a Configuration</h3>
|
||||
<p>As you add/remove passwords from the server configuration file, you'll want your changes to take effect. To reload without restarting the server and disconnecting clients, do:</p>
|
||||
<pre class="language-"><code>> nats-server --signal reload
|
||||
</code></pre>
|
||||
@@ -2375,7 +2375,7 @@ bcrypt hash: $2a$11$V1qrpBt8/SLfEBr4NJq4T.2mg8chx8.MTblUiTBOLV3MKDeAy.f7u
|
||||
<script>
|
||||
var gitbook = gitbook || [];
|
||||
gitbook.push(function() {
|
||||
gitbook.page.hasChanged({"page":{"title":"Username/Password","level":"4.5.1.2.2","depth":4,"next":{"title":"TLS Authentication","level":"4.5.1.2.3","depth":4,"path":"nats_server/tls_mutual_auth.md","ref":"nats_server/tls_mutual_auth.md","articles":[]},"previous":{"title":"Tokens","level":"4.5.1.2.1","depth":4,"path":"nats_server/tokens.md","ref":"nats_server/tokens.md","articles":[]},"dir":"ltr"},"config":{"plugins":["prism","-highlight","include-html","toggle-chapters","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"lang":{"ascii":"markup","text":"markup"}},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"include-html":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"toggle-chapters":{}},"theme":"default","author":"The NATS Maintainers","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NATS","gitbook":"*","description":"Administrative, developer and conceptual documentation for the NATS messaging system."},"file":{"path":"nats_server/username_password.md","mtime":"2019-05-29T16:43:54.849Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-29T16:45:48.381Z"},"basePath":"..","book":{"language":""}});
|
||||
gitbook.page.hasChanged({"page":{"title":"Username/Password","level":"4.5.1.2.2","depth":4,"next":{"title":"TLS Authentication","level":"4.5.1.2.3","depth":4,"path":"nats_server/tls_mutual_auth.md","ref":"nats_server/tls_mutual_auth.md","articles":[]},"previous":{"title":"Tokens","level":"4.5.1.2.1","depth":4,"path":"nats_server/tokens.md","ref":"nats_server/tokens.md","articles":[]},"dir":"ltr"},"config":{"plugins":["prism","-highlight","include-html","toggle-chapters","anchors"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"prism":{"lang":{"ascii":"markup","text":"markup"}},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"include-html":{},"fontsettings":{"theme":"white","family":"sans","size":2},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{},"toggle-chapters":{}},"theme":"default","author":"The NATS Maintainers","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"NATS","gitbook":"*","description":"Administrative, developer and conceptual documentation for the NATS messaging system."},"file":{"path":"nats_server/username_password.md","mtime":"2019-05-30T17:42:13.293Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-30T17:42:48.393Z"},"basePath":"..","book":{"language":""}});
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user