-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Device Shared Secret Authentication (#1139)
this is based upon 0d44fc2 with the addition of Product Shared Secrets * device token auth strategy requires opt in during runtime * add an `Experimental` badge * improvements to the shared secrets UI * add authorization to the Product Settings LiveView --------- Co-authored-by: Jon Carstens <[email protected]>
- Loading branch information
1 parent
a2294c7
commit b83ea21
Showing
32 changed files
with
1,012 additions
and
33 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
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
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 |
---|---|---|
|
@@ -14,8 +14,8 @@ config :nerves_hub, | |
deploy_env: System.get_env("DEPLOY_ENV", to_string(config_env())), | ||
from_email: System.get_env("FROM_EMAIL", "[email protected]") | ||
|
||
if log_level = System.get_env("LOG_LEVEL") do | ||
config :logger, level: String.to_atom(log_level) | ||
if level = System.get_env("LOG_LEVEL") do | ||
config :logger, level: String.to_atom(level) | ||
end | ||
|
||
dns_cluster_query = | ||
|
@@ -55,6 +55,9 @@ if config_env() == :prod do | |
signing_salt: System.fetch_env!("LIVE_VIEW_SIGNING_SALT") | ||
], | ||
server: true | ||
|
||
config :nerves_hub, NervesHubWeb.DeviceSocketSharedSecretAuth, | ||
enabled: System.get_env("DEVICE_SHARED_SECRET_AUTH", "false") == "true" | ||
end | ||
|
||
if nerves_hub_app in ["all", "device"] do | ||
|
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
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
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
Oops, something went wrong.