Ueberauth Wordpress
Wordpress OAuth2 strategy for Überauth.
Installation
If available in Hex, the package can be installed
by adding ueberauth_wordpress
to your list of dependencies in mix.exs
:
def deps do
[
{:ueberauth_wordpress, "~> 0.2.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ueberauth_wordpress.
The code is mostly lifted from similiar OAuth2 strategies for Überauth on github, and tailored for wordpress. You need to get your client_id
and client_secret
from: wordpress
Then config your application with:
config :ueberauth, Ueberauth,
providers: [
wordpress: {Ueberauth.Strategy.Wordpress, [default_scope: "auth"]}
]
config :ueberauth, Ueberauth.Strategy.Wordpress.OAuth,
client_id: System.get_env("WORDPRESS_CLIENT_ID"),
client_secret: System.get_env("WORDPRESS_CLIENT_SECRET")
License
This software is released under the MIT license. Please refer to the LICENSE file for detail.