Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mediawiki-shibboleth-authentication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marco Malavolti
mediawiki-shibboleth-authentication
Commits
6fa55c76
Commit
6fa55c76
authored
12 years ago
by
Balazs Varga
Browse files
Options
Downloads
Patches
Plain Diff
AuthPlugin interface and documentation changes
parent
cc35dc4e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ShibAuthPlugin.php
+13
-10
13 additions, 10 deletions
ShibAuthPlugin.php
with
13 additions
and
10 deletions
ShibAuthPlugin.php
+
13
−
10
View file @
6fa55c76
...
...
@@ -61,9 +61,10 @@ class ShibAuthPlugin extends AuthPlugin {
* Modify options in the login template.
*
* @param UserLoginTemplate $template
* @param String $type 'signup' or 'login'. Added in 1.16.
* @access public
*/
function
modifyUITemplate
(
&
$template
)
{
function
modifyUITemplate
(
&
$template
,
&
$type
)
{
$template
->
set
(
'usedomain'
,
false
);
}
...
...
@@ -147,11 +148,12 @@ class ShibAuthPlugin extends AuthPlugin {
* Set the given password in the authentication database.
* Return true if successful.
*
* @param User $user
* @param string $password
* @return bool
* @access public
*/
function
setPassword
(
$password
)
{
function
setPassword
(
$user
,
$password
)
{
global
$shib_pretend
;
return
$shib_pretend
;
...
...
@@ -184,12 +186,13 @@ class ShibAuthPlugin extends AuthPlugin {
* Add a user to the external authentication database.
* Return true if successful.
*
* @param User $user
* @param string $password
* @return bool
* @access public
* @param $user User: only the name should be assumed valid at this point
* @param $password String
* @param $email String
* @param $realname String
* @return Boolean
*/
function
addUser
(
$user
,
$password
)
{
public
function
addUser
(
$user
,
$password
,
$email
=
''
,
$realname
=
''
)
{
return
false
;
}
...
...
@@ -215,10 +218,10 @@ class ShibAuthPlugin extends AuthPlugin {
* The User object is passed by reference so it can be modified; don't
* forget the & on your function declaration.
*
* @param User $user
* @
access public
* @param User $user
User object.
* @
param $autocreate Boolean: True if user is being autocreated on login
*/
function
initUser
(
&
$user
,
$autocreate
)
{
function
initUser
(
&
$user
,
$autocreate
=
false
)
{
$this
->
updateUser
(
$user
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment