All Projects → frumbert → wp2moodle--wordpress-

frumbert / wp2moodle--wordpress-

Licence: other
Wordpress to Moodle pass through authentication plugin (wordpress end)

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to wp2moodle--wordpress-

single-sign-on-out-jwt-cookie-redis-java-springboot-freemarker
Single Sign Out, Scalable Authentication Example with JSON Web Token (JWT), Spring Boot and Redis
Stars: ✭ 15 (-44.44%)
Mutual labels:  single-sign-on
zionbuilder
Revolutionary WordPress page builder
Stars: ✭ 42 (+55.56%)
Mutual labels:  wordpress-plugin
wp-webauthn
🔒 WP-WebAuthn allows you to safely login to your WordPress site without password.
Stars: ✭ 85 (+214.81%)
Mutual labels:  wordpress-plugin
cas-overlay-template
Apereo CAS WAR Overlay template
Stars: ✭ 1,057 (+3814.81%)
Mutual labels:  single-sign-on
affilicious
Affilicious, the Wordpress WooCommerce for affiliates. Use products. shops, price comparisons, details and more for free.
Stars: ✭ 17 (-37.04%)
Mutual labels:  wordpress-plugin
wordpress-geo-mashup
Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
Stars: ✭ 60 (+122.22%)
Mutual labels:  wordpress-plugin
psrcas
PSR CAS, a PHP standard library for CAS authentication.
Stars: ✭ 21 (-22.22%)
Mutual labels:  single-sign-on
multi-step-form
A free WordPress plugin for dynamic multi-step forms.
Stars: ✭ 32 (+18.52%)
Mutual labels:  wordpress-plugin
code-embed
🧩WordPress plugin to make embedding of code in posts really, really easy
Stars: ✭ 20 (-25.93%)
Mutual labels:  wordpress-plugin
wp-simple-saml
WordPress Simple SAML plugin
Stars: ✭ 73 (+170.37%)
Mutual labels:  single-sign-on
crowbar
Securily generates temporary AWS credentials through identity providers using SAML
Stars: ✭ 23 (-14.81%)
Mutual labels:  single-sign-on
memberful-wp
Better membership software for WordPress.
Stars: ✭ 37 (+37.04%)
Mutual labels:  wordpress-plugin
wp-quicklink
The WordPress plugin for quicklink. ⚡️ Faster subsequent page-loads by prefetching in-viewport links during idle time.
Stars: ✭ 61 (+125.93%)
Mutual labels:  wordpress-plugin
cas-bootadmin-overlay
CAS Spring Boot Admin Server Overlay Template
Stars: ✭ 20 (-25.93%)
Mutual labels:  single-sign-on
likecoin-wordpress
The WordPress plugin to integrate LikeCoin - Decentralized Publishing Infrastructure.
Stars: ✭ 19 (-29.63%)
Mutual labels:  wordpress-plugin
eu-login-bundle
EU Login bundle, a standard Symfony bundle to authenticate users against EU Login.
Stars: ✭ 25 (-7.41%)
Mutual labels:  single-sign-on
WPGlobus
WPGlobus is a family of WordPress plugins assisting you in making bilingual / multilingual WordPress blogs and sites. This is a development repository. The stable version is on WordPress.org.
Stars: ✭ 40 (+48.15%)
Mutual labels:  wordpress-plugin
wp-showhide
Allows you to embed content within your blog post via WordPress ShortCode API and toggling the visibility of the cotent via a link.
Stars: ✭ 21 (-22.22%)
Mutual labels:  wordpress-plugin
disable-drop-cap
Plugin to disable drop cap in Gutenberg editor paragraph block.
Stars: ✭ 11 (-59.26%)
Mutual labels:  wordpress-plugin
wordpress-plugin
IMPress for IDX Broker
Stars: ✭ 20 (-25.93%)
Mutual labels:  wordpress-plugin

this codebase has been archived and a new version of the plugin is now at https://github.com/frumbert/wp2moodle.

wp2moodle

Wordpress-to-Moodle pass through authentication plugin (wordpress end). It takes the user that is logged onto wordpress and passes their details over to Moodle (encrypted using openssl), authenticates them, enrols them in one or more courses, then opens the course.

Note: The link that is gnerated is internally timestamped and will expire to reduce bookmarking or sharing. How long before it expires is configured in the Moodle-end plugin.

Demo / Further documenation

Go to my wordpress demo site and register yourself, then try the links.

http://wp2moodle.coursesuite.ninja/

E-Commerce integration

This plugin automatically integrates with MarketPress and WooCommerce. BUT! Since wpmu & woo both only let you download a file, rather than calling a dynamic link or service, you'll have to jump through some hoops... Create and upload a text file as your digital download that contains the group and/or cohort names you want the user to enrol into, and it's business as usual. So you might have a file called "HistoryCourse-wp2moodle.txt" which contains your passthrough parameters, for instance:

cohort=History101
group=semester2_2015
course=abc123

Upload this file as your digital download, and that's all. A sale will cause a 301 redirect to the configured Moodle server with the SSO token.

Note: The "download" file must be a text file and its name must end in -wp2moodle.txt for this to work.

Activating and configuring the plugin

Note, you must to rename the zip to be just 'wp2moodle.zip' before you upload the plugin to wordpress. If the zip extracts to a sub-folder, it won't work!

  1. Download the plugin, unzip it, rename the folder to be "wp2moodle"
  2. Place the plugin in your ~/wp-content/plugins folder.
  3. In wp-admin, go to the plugins list and activate the plugin
  4. Click wp2moodle on the wordpress menu
  5. Set your moodle url (e.g. http://your-site.com/moodle/)
  6. Set the shared secret. This is a salt that is used to encrypt data that is sent to Moodle. Using a guid (http://www.newguid.org/) is a good idea. It must match the shared secret that you use on the Moodle plugin. (https://github.com/frumbert/wp2moodle-moodle)
  7. Other instructions are available on the settings page.

How to use the plugin

  1. Edit a post or a page
  2. Use the moodle button on the editor to insert the shortcode block around the text you want linked
  3. When authenticated as subscriber, contributor, etc, click on the link.

Note: If the user is not yet authenticated, no hyperlink is rendered. It's also best to avoid linking the admin accounts.

Shortcode examples

[wp2moodle class='my-class' cohort='course1' target='_blank']<img src='path.gif'>Open my course[/wpmoodle]

[wp2moodle group='group2']A hyperlink[/wp2moodle]

`class`: the css classname to apply to the link (default: wp2moodle)
`target`: the hyperlink target name to apply to the link (defaut: _self)
`cohort`: (optional) the id [mdl_cohort.idnumber] of the moodle cohort in which to enrol the user (can be a comma-seperated list for multiple enrolments)
`group`: (optional) the id [mdl_groups.idnumber] of the moodle group in which to enrol the user (can be a comma-seperated list for multiple enrolments)
`course`: (optional) the id [mdl_courses.idnumber] of the moodle course in which to enrol the user (can be a comma-seperated list for multiple enrolments)
`authtext`: (optional) the text that appears instead when the user is not yet logged on
`activity`: (optional, number) the numerical index of an activity to open after enrolment. E.g. "2" will attempt to open the second activity in the destination course.

Requirements:

openssl needs to be present and available in your php installation. It's likely that it is.

Licence:

GPL2, as per Moodle.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].