Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
auth-experiment
PluggableAuth
Commits
3cd38182
Commit
3cd38182
authored
Oct 16, 2017
by
Cindy Cicalese
Browse files
Moved PHP files to includes and license to COPYING.
Change-Id: I9dc600efcbd5dc1f97b8a4e6b13508b894da7e61
parent
2528a750
Changes
10
Hide whitespace changes
Inline
Side-by-side
COPYING
0 → 100644
View file @
3cd38182
Copyright (c) 2015-2017 The MITRE Corporation
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
PluggableAuthBeginAuthenticationRequest.php
deleted
100644 → 0
View file @
2528a750
<?php
/*
* Copyright (c) 2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
use
\
MediaWiki\Auth\ButtonAuthenticationRequest
;
class
PluggableAuthBeginAuthenticationRequest
extends
ButtonAuthenticationRequest
{
public
function
__construct
()
{
parent
::
__construct
(
'pluggableauthlogin'
,
wfMessage
(
'pluggableauth-loginbutton-label'
),
wfMessage
(
'pluggableauth-loginbutton-help'
),
true
);
}
}
extension.json
View file @
3cd38182
...
...
@@ -19,12 +19,12 @@
"PluggableAuthAlias"
:
"PluggableAuth.alias.php"
},
"AutoloadClasses"
:
{
"PluggableAuth"
:
"PluggableAuth.
class.
php"
,
"PluggableAuthHooks"
:
"PluggableAuthHooks.php"
,
"PluggableAuthPrimaryAuthenticationProvider"
:
"PluggableAuthPrimaryAuthenticationProvider.php"
,
"PluggableAuthBeginAuthenticationRequest"
:
"PluggableAuthBeginAuthenticationRequest.php"
,
"PluggableAuthContinueAuthenticationRequest"
:
"PluggableAuthContinueAuthenticationRequest.php"
,
"PluggableAuthLogin"
:
"PluggableAuthLogin.php"
"PluggableAuth"
:
"
includes/
PluggableAuth.php"
,
"PluggableAuthHooks"
:
"
includes/
PluggableAuthHooks.php"
,
"PluggableAuthPrimaryAuthenticationProvider"
:
"
includes/
PluggableAuthPrimaryAuthenticationProvider.php"
,
"PluggableAuthBeginAuthenticationRequest"
:
"
includes/
PluggableAuthBeginAuthenticationRequest.php"
,
"PluggableAuthContinueAuthenticationRequest"
:
"
includes/
PluggableAuthContinueAuthenticationRequest.php"
,
"PluggableAuthLogin"
:
"
includes/
PluggableAuthLogin.php"
},
"callback"
:
"PluggableAuthHooks::onRegistration"
,
"Hooks"
:
{
...
...
PluggableAuth.alias.php
→
includes/
PluggableAuth.alias.php
View file @
3cd38182
<?php
/**
* Aliases for special pages
*
...
...
@@ -7,9 +8,9 @@
*/
// @codingStandardsIgnoreFile
$specialPageAliases
=
array
()
;
$specialPageAliases
=
[]
;
/** English (English) */
$specialPageAliases
[
'en'
]
=
array
(
'PluggableAuthLogin'
=>
array
(
'PluggableAuthLogin'
)
,
)
;
$specialPageAliases
[
'en'
]
=
[
'PluggableAuthLogin'
=>
[
'PluggableAuthLogin'
]
,
]
;
PluggableAuth.
class.
php
→
includes/
PluggableAuth.php
View file @
3cd38182
<?php
/*
* Copyright (c) 2015-2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
abstract
class
PluggableAuth
{
/**
...
...
includes/PluggableAuthBeginAuthenticationRequest.php
0 → 100644
View file @
3cd38182
<?php
use
\
MediaWiki\Auth\ButtonAuthenticationRequest
;
class
PluggableAuthBeginAuthenticationRequest
extends
ButtonAuthenticationRequest
{
public
function
__construct
()
{
parent
::
__construct
(
'pluggableauthlogin'
,
wfMessage
(
'pluggableauth-loginbutton-label'
),
wfMessage
(
'pluggableauth-loginbutton-help'
),
true
);
}
}
PluggableAuthContinueAuthenticationRequest.php
→
includes/
PluggableAuthContinueAuthenticationRequest.php
View file @
3cd38182
<?php
/*
* Copyright (c) 2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
use
\
MediaWiki\Auth\AuthenticationRequest
;
use
\
MediaWiki\Auth\AuthManager
;
...
...
PluggableAuthHooks.php
→
includes/
PluggableAuthHooks.php
View file @
3cd38182
<?php
/*
* Copyright (c) 2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
class
PluggableAuthHooks
{
/**
...
...
PluggableAuthLogin.php
→
includes/
PluggableAuthLogin.php
View file @
3cd38182
<?php
/*
* Copyright (c) 2014-2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
use
\
MediaWiki\Auth\AuthManager
;
class
PluggableAuthLogin
extends
UnlistedSpecialPage
{
...
...
PluggableAuthPrimaryAuthenticationProvider.php
→
includes/
PluggableAuthPrimaryAuthenticationProvider.php
View file @
3cd38182
<?php
/*
* Copyright (c) 2016 The MITRE Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
use
\
MediaWiki\Auth\AuthenticationRequest
;
use
\
MediaWiki\Auth\ButtonAuthenticationRequest
;
use
\
MediaWiki\Auth\AbstractPrimaryAuthenticationProvider
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment