diff --git a/CHANGELOG.md b/CHANGELOG.md index f17f696..6dff88a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,8 @@ # CHANGE LOG -## Version 1.0.2 (2022-11-08) +## Version 1.0.4 (2022-11-09) - add property for URL - add class variables for PATH, AUTHORIZATION_ENDPOINT, TOKEN_ENDPOINT, USERINFO_ENDPOINT - switch to urllib.parse urljoin() - add a Makefile -- change documentation to reference Wordpress miniOrange OAuth / OpenID Connect Server diff --git a/README.rst b/README.rst index f788fca..009ed2d 100644 --- a/README.rst +++ b/README.rst @@ -22,7 +22,7 @@ Open edX OAuth2 Backend for Wordpress Overview -------- -An Open edX oauth2 backend for `Wordpress `_ `miniOrange OAuth / OpenID Connect Server `_. +An Open edX oauth2 backend for `Wordpress `_ `WP OAuth Server `_. - `Python Social Auth custom backend implentation `_ - `WP Oauth Wordpress Plugin Documentation `_ @@ -136,9 +136,9 @@ WP Oauth Plugin Configuration This plugin enables your Open edX installation to authenticate against the WP Oauth plugin provider 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% - :alt: miniOrange OAuth configuration page + :alt: WP OAuth Server configuration page Sample lms log output --------------------- diff --git a/oauth2_wordpress/__about__.py b/oauth2_wordpress/__about__.py index 7863915..92192ee 100644 --- a/oauth2_wordpress/__about__.py +++ b/oauth2_wordpress/__about__.py @@ -1 +1 @@ -__version__ = "1.0.2" +__version__ = "1.0.4" diff --git a/oauth2_wordpress/wp_oauth.py b/oauth2_wordpress/wp_oauth.py index 338f267..32ceaff 100644 --- a/oauth2_wordpress/wp_oauth.py +++ b/oauth2_wordpress/wp_oauth.py @@ -57,12 +57,12 @@ class WPOpenEdxOAuth2(BaseOAuth2): BASE_URL = "https://set-me-please.com" # a path to append to the BASE_URL: https://oauth_host.com/oauth/ - PATH = "wp-json/moserver/" + PATH = "oauth/" # endpoint defaults AUTHORIZATION_ENDPOINT = "authorize" TOKEN_ENDPOINT = "token" - USERINFO_ENDPOINT = "resource" + USERINFO_ENDPOINT = "me" # The default key name where the user identification field is defined, it’s # used in the auth process when some basic user data is returned. This Id diff --git a/pyproject.toml b/pyproject.toml index 85728d6..d638fc6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__" [project] name = "edx-oauth2-wordpress-backend" -version = "1.0.2" +version = "1.0.4" authors = [ { name="Lawrence McDaniel", email="lpm0073@gmail.com" }, ]