What I want is :
- when I register in my service , it could create an acount in mediawiki
- when I login in my service , it could login in mediawiki
- when I logout in my service ,it could logout in mediawiki
What you want would be better served by implementing an AuthPlugin: https://www.mediawiki.org/wiki/AuthPlugin