-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove http-basic-auth-cred, replaced by http-basic-auth-multiple
- Loading branch information
Showing
5 changed files
with
46 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,36 +22,39 @@ curl 'https://test:[email protected]/basic-auth-demo' | |
|
||
## Config | ||
|
||
There are three type of configuration: | ||
There are three types of configuration: | ||
|
||
1. *Simple*: each node has it’s own credentials. (one credential) | ||
2. *Shared*: credentials shared with multiple nodes. (one credential) | ||
3. *File*: the user credentials are stored in a file. (multiple credentials) | ||
2. *Multiple credentials*: credentials shared with multiple nodes. (multiple credentials) | ||
3. *File with multiple credentials*: the user credentials are stored in a file. (multiple credentials) | ||
|
||
With all three config types you must specify the following: | ||
## Definitions | ||
|
||
- *Realm*: what authorization realm will be used with this node. | ||
* *Username* | ||
* The username | ||
* Example: `alice` | ||
|
||
With *Simple* and *Shared* config types you must specify the following: | ||
* *Realm* | ||
* Authorization realm for which the credentials will be valid | ||
* Example: `node-red` | ||
|
||
- *Username*: the username | ||
- *Password*: the password may be in plain-text or hashed (only bcrypt is supported). | ||
Example of hashed password `test`: | ||
* *Password* | ||
* The password may be in plain-text or hashed (only bcrypt is supported) | ||
* Example in plain-text: `test` | ||
* Example in bcrypt: `$2y$10$5TSZDldoJ7MxDZdtK/SG2O3cwORqLDhHabYlKX9OsM.W/Z/oLwKW6` | ||
|
||
```plain | ||
$2y$10$5TSZDldoJ7MxDZdtK/SG2O3cwORqLDhHabYlKX9OsM.W/Z/oLwKW6 | ||
``` | ||
* *File* | ||
* Location of the file containing the credentials relative to the presently working directory | ||
* Example: `/data/.credentials` | ||
* The format for each line is `user:realm:password` | ||
|
||
With *File* config type you must specify the following: | ||
</dl> | ||
|
||
- File: location of the file containing the credentials relative to the presently working directory. | ||
The format for each line is `user:realm:password`. | ||
The passwords may be in plain-text or hashed (only bcrypt is supported). | ||
Example of file: | ||
Example of file: | ||
|
||
```plain | ||
user1:application1:test | ||
user2:application1:$2y$10$5TSZDldoJ7MxDZdtK/SG2O3cwORqLDhHabYlKX9OsM.W/Z/oLwKW6 | ||
user1:node-red:test | ||
user2:node-red:$2y$10$5TSZDldoJ7MxDZdtK/SG2O3cwORqLDhHabYlKX9OsM.W/Z/oLwKW6 | ||
``` | ||
|
||
## Hints | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters