Skip to content

Commit 398ec2b

Browse files
Auth Server User Password Mqtt (#113)
## Purpose A sample to provide basic username password authentication for AIO MQTT broker. ## Does this introduce a breaking change? <!-- Mark one with an "x". --> ``` [ ] Yes [x] No ``` ## Pull Request Type What kind of change does this Pull Request introduce? <!-- Please check the one that applies to this PR using "x". --> ``` [ ] Bugfix [x] Feature [ ] Code style update (formatting, local variables) [ ] Refactoring (no functional changes, no api changes) [ ] Documentation content changes [ ] Other... Please describe: ``` ## How to Test Follow Readme Instructions. --------- Signed-off-by: Suneet Nangia <[email protected]> Co-authored-by: Andrew Malkov <[email protected]>
1 parent 6716d9a commit 398ec2b

File tree

20 files changed

+4035
-0
lines changed

20 files changed

+4035
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Updates latest stable toolchain for Rust and clippy/fmt for this toolchain
2+
rustup update stable && rustup default stable && rustup component add clippy rustfmt
3+
4+
# Install kubectl
5+
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
6+
chmod +x kubectl
7+
mv kubectl /usr/local/bin/
8+
9+
# Install Azure CLI
10+
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
3+
{
4+
"name": "MQTT Username Password Auth Server Dev",
5+
"image": "mcr.microsoft.com/devcontainers/rust:1-bookworm",
6+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
7+
// "forwardPorts": [],
8+
// Use 'postCreateCommand' to run commands after the container is created.
9+
"postCreateCommand": "sh ./.devcontainer/bootstrap.sh",
10+
// Configure tool-specific properties.
11+
// "customizations": {},
12+
"features": {
13+
"docker-in-docker": {
14+
"version": "latest"
15+
}
16+
},
17+
// More info: https://aka.ms/dev-containers-non-root.
18+
"remoteUser": "vscode",
19+
// Add the IDs of extensions you want installed when the container is created.
20+
"customizations": {
21+
"vscode": {
22+
"extensions": [
23+
"rust-lang.rust-analyzer",
24+
"redhat.vscode-yaml",
25+
"tamasfe.even-better-toml",
26+
"vadimcn.vscode-lldb",
27+
"streetsidesoftware.code-spell-checker",
28+
"ms-vscode.makefile-tools",
29+
"davidanson.vscode-markdownlint",
30+
"ms-kubernetes-tools.vscode-kubernetes-tools"
31+
]
32+
}
33+
}
34+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Rust
2+
target/
3+
**/*.rs.bk
4+
5+
# Generated by Cargo
6+
Cargo.lock
7+
8+
# These are backup files generated by rustfmt
9+
**/*.rs.bk
10+
11+
# If you're using IDEs:
12+
.idea/
13+
.vscode/
14+
*.swp
15+
*.swo

0 commit comments

Comments
 (0)