summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorIvan Tashkinov <ivan.tashkinov@gmail.com>2019-03-11 20:37:26 +0300
committerIvan Tashkinov <ivan.tashkinov@gmail.com>2019-03-11 20:37:26 +0300
commit63ab61ed3f4988bfaf9080bcdc4fc8d5046fa57e (patch)
tree6502bbc5269bc7c688f4fdfff98c64b18c438864 /config
parent2c8deecdd2f75c6cdf1089e4266bedb8be55539c (diff)
downloadpleroma-63ab61ed3f4988bfaf9080bcdc4fc8d5046fa57e.tar.gz
pleroma-63ab61ed3f4988bfaf9080bcdc4fc8d5046fa57e.zip
Sign in via Twitter (WIP).
Diffstat (limited to 'config')
-rw-r--r--config/config.exs11
-rw-r--r--config/dev.exs1
2 files changed, 11 insertions, 1 deletions
diff --git a/config/config.exs b/config/config.exs
index cd4c8e562..8c754cef3 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -369,6 +369,17 @@ config :auto_linker,
rel: false
]
+config :ueberauth,
+ Ueberauth,
+ base_path: "/oauth",
+ providers: [
+ twitter: {Ueberauth.Strategy.Twitter, []}
+ ]
+
+config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,
+ consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
+ consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET")
+
# 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"
diff --git a/config/dev.exs b/config/dev.exs
index f77bb9976..a7eb4b644 100644
--- a/config/dev.exs
+++ b/config/dev.exs
@@ -12,7 +12,6 @@ config :pleroma, Pleroma.Web.Endpoint,
protocol_options: [max_request_line_length: 8192, max_header_value_length: 8192]
],
protocol: "http",
- secure_cookie_flag: false,
debug_errors: true,
code_reloader: true,
check_origin: false,