Author: googltakovr
Description:
Version: master
Severity: enhancement
URL: http://stackoverflow.com/q/14343703/1930997
Author: googltakovr
Description:
Version: master
Severity: enhancement
URL: http://stackoverflow.com/q/14343703/1930997
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Feature | None | T66475 Make crosswiki bits and pieces truly global (tracking) | ||
Declined | Feature | None | T15631 Wikimedia should become an OpenID provider | ||
Declined | None | T31254 [SUGGESTION] Expose group memberships for query through OpenID teams extension | |||
Declined | Wikinaut | T25735 Allow different user grouping for OpenID users | |||
Declined | None | T61631 Enable Facebook login on Wikimedia wikis | |||
Declined | None | T11604 Get OpenID extension to a state where it could be used on Wikimedia projects as a provider | |||
Declined | Wikinaut | T46165 [SUGGESTION] Add extension hooks for OpenID link/unlink |
reported by asked Jan 15 at 17:50 angrybirderer57661 and copied to here from http://stackoverflow.com/questions/14343703/autopromote-users-when-they-link-an-openid-to-their-account :
"I'm using MediaWiki with the OpenID extension, and would like the wiki to autopromote users that link their OpenID(s) to their editing accounts, and autorevoke them if there are no linked OpenIDs. I know the MediaWiki syntax for autopromotion, but do not know the event ID triggered when an OpenID is linked/unlinked."
To achieve this feature, the OpenID extension needs to have hooks.
What are hooks?
Hooks in MediaWiki are events subscription facilities: they are arrays of functions to call when a specific event occurs.
For example, the UserSetEmail hook will allow any functions to be called when an user sets a email. More information about hooks.
We need OpenID extension hooks.
As soon UserSetOpenID and UserUnsetOpenID hooks will be available, you will be able to add your autopromotion code in a function, called by these hooks:
$wgHooks['UserSetOpenID'][] = 'PromoteUserOnOpenID';
function PromoteUserOnOpenID ( $user, &$OpenID ) {
//The promotion code
}
@bug reporter angrybirderer57661 :
Is this still needed by someone else?
Or can I close the bug ?