Coder Social home page Coder Social logo

iblai / ibl-web-openid-client-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oidc-wp/openid-connect-generic

0.0 0.0 0.0 1.28 MB

WordPress plugin to provide an OpenID Connect Generic client

Home Page: https://wordpress.org/plugins/daggerhart-openid-connect-generic/

Shell 18.36% JavaScript 3.24% PHP 76.34% CSS 0.40% Dockerfile 1.67%

ibl-web-openid-client-plugin's Introduction

IBL WP Auth

WP Open ID client forked from.

Dependencies

Update

To make sure this plugin is upto date with the original version.

  • Clone repo.
git clone [email protected]:ibleducation/ibl-wp-auth.git
  • Add new remote to the original version.
git remote add original https://github.com/daggerhart/openid-connect-generic.git
  • Fetch update from original repo.
git fetch original dev
git checkout dev
git pull original dev
  • Rebase or merge changes to our main branch.
git checkout main
git rebase dev
git push origin main -f

Create an Open id client in edX for WP.

  • Head over to https://<edx_lms_domain>/admin/oidc_provider/client/add/.
  • Name: Wordpress
  • Client Type: Confidential
  • Response types: code (Authorization Code Flow)
  • Redirect URIs:
https://<wordpress_domain>/sso-proxy/
https://<wordpress_domain>/sso-proxy
https://<wordpress_domain>/openid-connect-authorize
  • Require Consent?: False (Uncheck)
  • Scopes: email profile openid
  • Post Logout Redirect URIs:
https://<wordpress_domain>/sso/logout
https://<wordpress_domain>/sso/logout/
https://<wordpress_domain>/reestablish-session
https://<wordpress_domain>/reestablish-session/
  • Click the Save and continue editing button. This should generate Client ID and Client SECRET under Credentials, copy them as we shall be using them to configure WP to use edX as the Identity Provider.

Configue WP to use edX as the idp.

  • Head over to https://<wordpress_domain>/wp/wp-admin/options-general.php?page=openid-connect-generic-settings.
  • Client ID: Client ID generated above.
  • Client Secret Key: Client SECRET generated above.
  • OpenID Scope: email profile openid
  • Login Endpoint URL: https://learn.ibl.edducation/openid/authorize
  • Userinfo Endpoint URL: https://learn.ibl.edducation/openid/userinfo
  • Token Validation Endpoint URL: https://learn.ibl.edducation/openid/token
  • End Session Endpoint URL: https://learn.ibl.edducation/openid/end-session
  • Identity Key: nickname
  • Nickname Key: nickname
  • Enable Refresh Token: True (Check)
  • Link Existing Users: True (Check)
  • Create user if does not exist: True (Check)
  • Redirect Back to Origin Page: True (Check)
  • Redirect to the login screen when session is expired: True (Check)
  • Alternate Redirect URI: True (Check)
  • Enable Logging: True (Check)
  • Click Save Changes button.

ibl-web-openid-client-plugin's People

Contributors

timnolte avatar daggerhart avatar robertstaddon avatar dependabot[bot] avatar schanzen avatar rkcreation avatar glowsome avatar rwasef1830 avatar robjs avatar pjeby avatar wgengarelly avatar gassan avatar xdavidwu avatar skidos avatar jkouris avatar gipsbrian avatar chris-schreyer avatar thijskh avatar slykar avatar svenvanhal avatar sppant avatar mullikine avatar bookchiq avatar moriyoshi avatar flat235 avatar mvarblow avatar ksimunovic avatar maybejustjames avatar bgevam avatar dfredell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.