Skip to content

Instantly share code, notes, and snippets.

@jonty-comp
Created June 22, 2016 18:31
Show Gist options
  • Save jonty-comp/c91fb0acbb30c4e2e8700e607b6ec8d5 to your computer and use it in GitHub Desktop.
Save jonty-comp/c91fb0acbb30c4e2e8700e607b6ec8d5 to your computer and use it in GitHub Desktop.
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;
@xrkolovos
Copy link

In witch file we put this code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment