Skip to content

MarsArgentina/phobos-auth

Repository files navigation

Phobos Auth

This plugin adds social login options to Ultimate Member in the WordPress site of The Mars Society Argentina.

Description

This plugin is intended to add Single Sign On options to Ultimate Member without using the paid Add-On.

Currently it only supports Discord but more OAuth2 providers can be added.

This plugin uses The PHP League OAuth2 Client library internally so all of the official providers and third-party providers can potentially be added to this plugin.

Installation

Before you install this plugin you should install the following plugins:

  • Ultimate Member
  • Native PHP Sessions
  • Phobos

Once you have installed and activated these plugins, follow the next steps:

  1. Upload the phobos-auth folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Start configuring your settings

Connecting to Discord

In order to connect this plugin to Discod you need to perform the following steps:

  1. Start by registering an Application in the Discord Developer Portal.
  2. Head over to the OAuth2 tab, and grab your Client ID and Client Secret so that you can paste them in the Discord Settings of this plugin.
  3. Grab the Redirects you can find in the Discord Settings of this plugin, and add them to the Redirects list of the OAuth2 tab on your Discord Application.

Enjoy!

Frequently Asked Questions

What OAuth2 providers are implemented?

Currently only Discord, more can be added in the future.

How is this better than the SSO add-on to Ultimate Member?

It's probably not better, but it's free.

License

MIT License - Copyright (c) 2021 The Mars Society Argentina

About

This plugin adds social login options to Ultimate Member in the WordPress site of The Mars Society Argentina.

Resources

License

Stars

Watchers

Forks

Packages

No packages published