Skip to content

Instantly share code, notes, and snippets.

@DesruX
DesruX / local.php
Created June 7, 2017 09:38 — forked from jonty-comp/local.php
configuring dokuwiki oauth plugin for Azure AD OpenID connect
$conf['plugin']['oauth']['custom-key'] = 'your-application-key';
$conf['plugin']['oauth']['custom-secret'] = 'your-application-secret';
$conf['plugin']['oauth']['custom-authurl'] = 'https://login.microsoftonline.com/your-tenant-id/oauth2/authorize';
$conf['plugin']['oauth']['custom-tokenurl'] = 'https://login.microsoftonline.com/your-tenant-id/oauth2/token';
$conf['plugin']['oauth']['custom-meurl'] = 'https://login.windows.net/your-tenant-id/openid/userinfo';
$conf['plugin']['oauth']['custom-mapping'] = 'user=upn name=name mail=upn';
$conf['plugin']['oauth']['custom-scope'] = 'openid';
$conf['plugin']['oauth']['singleService'] = 'Custom';
$conf['plugin']['oauth']['register-login'] = 1;