diff options
author | Ivan Tashkinov <ivant.business@gmail.com> | 2019-06-02 17:45:32 +0300 |
---|---|---|
committer | Ivan Tashkinov <ivant.business@gmail.com> | 2019-06-02 17:45:32 +0300 |
commit | 83663caa81f1ccca37fe3898feb4ec2d829ad893 (patch) | |
tree | 809cf84224bb6f52b40a9867609f4a54cfbf82fd /config | |
parent | e706b42f519fe754af980fc758be492b24e3ccde (diff) | |
download | pleroma-83663caa81f1ccca37fe3898feb4ec2d829ad893.tar.gz pleroma-83663caa81f1ccca37fe3898feb4ec2d829ad893.zip |
Ueberauth: extended format of OAUTH_CONSUMER_STRATEGIES to allow explicit dependency specification.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.exs | 6 |
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 |