Ueberauth: extended format of OAUTH_CONSUMER_STRATEGIES to allow explicit dependency specification.

This commit is contained in:
Ivan Tashkinov 2019-06-02 17:45:32 +03:00
commit 83663caa81
3 changed files with 24 additions and 9 deletions

View file

@ -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