[#923] OAuth: prototype of sign in / sign up with Twitter.

This commit is contained in:
Ivan Tashkinov 2019-03-15 17:08:03 +03:00
commit aacbf0f570
10 changed files with 209 additions and 37 deletions

View file

@ -369,11 +369,15 @@ config :auto_linker,
rel: false
]
config :pleroma, :auth, oauth_consumer_enabled: false
config :ueberauth,
Ueberauth,
base_path: "/oauth",
providers: [
twitter: {Ueberauth.Strategy.Twitter, []}
twitter:
{Ueberauth.Strategy.Twitter,
[callback_params: ~w[client_id redirect_uri scope scopes]]}
]
config :ueberauth, Ueberauth.Strategy.Twitter.OAuth,