DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:authdiscourse

This is an old revision of the document!


authdiscourse Plugin

Compatible with DokuWiki

2018-04-22b "Greebo"

plugin

Last updated on
2019-05-23
Provides
CSS/JS-only
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with sso

Authenticates users with a Discourse SSO provider. This might also be useful if you don't run Discourse at all, because the protocol is very simple and thus easy to implement.

Installation

:!: External requirements: This plugin requires the following additional components that must be installed separately:

  • A Discourse-compatible SSO provider (see documentation). Discourse itself can also act as an SSO provider.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Two configuration keys are required. For example, if you have a Discourse instance at https://discourse.example.com and a DokuWiki instance at dokuwiki.example.com, follow these steps:

  • Enable the SSO provider in the Discourse settings (settings key “enable sso provider”)
  • Generate a shared secret (e.g., head -c18 /dev/urandom | base64) and add your site to the “sso provider secrets” (fill in dokuwiki.example.com / <your shared secret>)
  • Add the following to your DokuWiki configuration, or fill in with the configuration editor:
$conf['authtype'] = 'authdiscourse';
$conf['plugin']['authdiscourse']['sso_url'] = 'https://discourse.example.com/session/sso_provider';
$conf['plugin']['authdiscourse']['sso_secret'] = '<your shared secret>';

Development

Change Log

Report Bugs and Issues

Please report bugs on GitHub.

Discussion

plugin/authdiscourse.1558619308.txt.gz · Last modified: 2019-05-23 15:48 by luchs

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki