summaryrefslogtreecommitdiff
path: root/config/config.exs
diff options
context:
space:
mode:
authorIvan Tashkinov <ivant.business@gmail.com>2019-06-02 17:45:32 +0300
committerIvan Tashkinov <ivant.business@gmail.com>2019-06-02 17:45:32 +0300
commit83663caa81f1ccca37fe3898feb4ec2d829ad893 (patch)
tree809cf84224bb6f52b40a9867609f4a54cfbf82fd /config/config.exs
parente706b42f519fe754af980fc758be492b24e3ccde (diff)
downloadpleroma-83663caa81f1ccca37fe3898feb4ec2d829ad893.tar.gz
pleroma-83663caa81f1ccca37fe3898feb4ec2d829ad893.zip
Ueberauth: extended format of OAUTH_CONSUMER_STRATEGIES to allow explicit dependency specification.
Diffstat (limited to 'config/config.exs')
-rw-r--r--config/config.exs6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index 68168b279..5f1a1d0f8 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -453,7 +453,11 @@ config :pleroma, :ldap,
config :esshd,
enabled: false
-oauth_consumer_strategies = String.split(System.get_env("OAUTH_CONSUMER_STRATEGIES") || "")
+oauth_consumer_strategies =
+ System.get_env("OAUTH_CONSUMER_STRATEGIES")
+ |> to_string()
+ |> String.split()
+ |> Enum.map(&hd(String.split(&1, ":")))
ueberauth_providers =
for strategy <- oauth_consumer_strategies do