Puppet Class: role::oauthauthentication

Defined in:
puppet/modules/role/manifests/oauthauthentication.pp

Overview

Class: role::oauthauthentication

Provisions the OAuthAuthentication extension, which allows login via OAuth, using accounts at a remote wiki.

Parameters:

  • consumer_key (Any)
  • consumer_secret (Any)
  • callback_url (Any)


5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'puppet/modules/role/manifests/oauthauthentication.pp', line 5

class role::oauthauthentication (
    $consumer_key,
    $consumer_secret,
    $callback_url,
) {
    mediawiki::extension { 'OAuthAuthentication':
        needs_update => true,
        composer     => true,
        settings     => {
            wgOAuthAuthenticationUrl            => 'https://meta.wikimedia.org/w/index.php?title=Special:OAuth',
            wgOAuthAuthenticationConsumerKey    => $consumer_key,
            wgOAuthAuthenticationConsumerSecret => $consumer_secret,
            wgOAuthAuthenticationCanonicalUrl   => 'https://meta.wikimedia.org',
            wgOAuthAuthenticationRemoteName     => 'Wikimedia',
            wgOAuthAuthenticationCallbackUrl    => $callback_url,
        }
    }

    mediawiki::import::text { 'VagrantRoleOAuthAuthentication':
        source => 'puppet:///modules/role/oauthauthentication/VagrantRoleOAuthAuthentication.wiki',
    }
}