Skip to content

hhyyrylainen/singlefile-discourse-sso-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Single file SSO client for Discourse in PHP (w/ PostgreSQL and logout)

Usage how to on Discourse Meta:

Related projects:

Adding a logout link

Here's a sample thing to put in LocalSettings.php:

# Logout for authentication
define('SSO_LOGOUT_TOKEN', hash('sha512', $SSO_STATUS["nonce"]));
$wgAuthRemoteuserUserUrls = [
    'logout' => function( $metadata ) {
        return '/discourse-sso.php?logout=' . SSO_LOGOUT_TOKEN;
    }
];

About

Ugly, but working single-file SSO implementation in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%