revert to WP OAuth Server

This commit is contained in:
lpm0073 2022-11-09 09:40:09 -06:00
parent 3a5f7277bf
commit 4f9192f14a
5 changed files with 8 additions and 9 deletions

View File

@ -1,9 +1,8 @@
# CHANGE LOG # CHANGE LOG
## Version 1.0.2 (2022-11-08) ## Version 1.0.4 (2022-11-09)
- add property for URL - add property for URL
- add class variables for PATH, AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT, USERINFO_ENDPOINT - add class variables for PATH, AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT, USERINFO_ENDPOINT
- switch to urllib.parse urljoin() - switch to urllib.parse urljoin()
- add a Makefile - add a Makefile
- change documentation to reference Wordpress miniOrange OAuth / OpenID Connect Server

View File

@ -22,7 +22,7 @@ Open edX OAuth2 Backend for Wordpress
Overview Overview
-------- --------
An Open edX oauth2 backend for `Wordpress <https://wordpress.org//>`_ `miniOrange OAuth / OpenID Connect Server <https://www.miniorange.com/>`_. An Open edX oauth2 backend for `Wordpress <https://wordpress.org//>`_ `WP OAuth Server <https://wp-oauth.com/>`_.
- `Python Social Auth custom backend implentation <https://python-social-auth.readthedocs.io/en/latest/backends/implementation.html>`_ - `Python Social Auth custom backend implentation <https://python-social-auth.readthedocs.io/en/latest/backends/implementation.html>`_
- `WP Oauth Wordpress Plugin Documentation <https://wp-oauth.com/docs/>`_ - `WP Oauth Wordpress Plugin Documentation <https://wp-oauth.com/docs/>`_
@ -136,9 +136,9 @@ WP Oauth Plugin Configuration
This plugin enables your Open edX installation to authenticate against the WP Oauth plugin provider This plugin enables your Open edX installation to authenticate against the WP Oauth plugin provider
in your Wordpress web site, configured as follows: in your Wordpress web site, configured as follows:
.. image:: https://raw.githubusercontent.com/lpm0073/edx-oauth2-wordpress-backend/main/doc/miniorange-oauth-config.png .. image:: https://raw.githubusercontent.com/lpm0073/edx-oauth2-wordpress-backend/main/doc/wp-oauth-config.png
:width: 100% :width: 100%
:alt: miniOrange OAuth configuration page :alt: WP OAuth Server configuration page
Sample lms log output Sample lms log output
--------------------- ---------------------

View File

@ -1 +1 @@
__version__ = "1.0.2" __version__ = "1.0.4"

View File

@ -57,12 +57,12 @@ class WPOpenEdxOAuth2(BaseOAuth2):
BASE_URL = "https://set-me-please.com" BASE_URL = "https://set-me-please.com"
# a path to append to the BASE_URL: https://oauth_host.com/oauth/ # a path to append to the BASE_URL: https://oauth_host.com/oauth/
PATH = "wp-json/moserver/" PATH = "oauth/"
# endpoint defaults # endpoint defaults
AUTHORIZATION_ENDPOINT = "authorize" AUTHORIZATION_ENDPOINT = "authorize"
TOKEN_ENDPOINT = "token" TOKEN_ENDPOINT = "token"
USERINFO_ENDPOINT = "resource" USERINFO_ENDPOINT = "me"
# The default key name where the user identification field is defined, its # The default key name where the user identification field is defined, its
# used in the auth process when some basic user data is returned. This Id # used in the auth process when some basic user data is returned. This Id

View File

@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"
[project] [project]
name = "edx-oauth2-wordpress-backend" name = "edx-oauth2-wordpress-backend"
version = "1.0.2" version = "1.0.4"
authors = [ authors = [
{ name="Lawrence McDaniel", email="lpm0073@gmail.com" }, { name="Lawrence McDaniel", email="lpm0073@gmail.com" },
] ]