From 9be77a9ad066d4fbe65ee9f659bbcaf141091e1f Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Mon, 15 Jan 2018 22:24:41 -0500 Subject: [PATCH] Add Guardian configuration --- config/config.exs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/config.exs b/config/config.exs index 8f706e0..30cb587 100644 --- a/config/config.exs +++ b/config/config.exs @@ -22,6 +22,11 @@ config :logger, :console, format: "$time $metadata[$level] $message\n", metadata: [:request_id] +# Configure authentication provider +config :chess, Chess.Auth.Guardian, + issuer: "chess", + secret_key: System.get_env("GUARDIAN_SECRET_KEY") + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env}.exs"