Steps to replicate the issue (include links if applicable):
- using PluggableAuth 7.0.0 (8a48b65) 05:58, 20 June 2023
- SimpleSAMLphp 7.0-dev (cbbed22) 14:10, 4 June 2023
in logs getting below
ERROR: return to URL is null or empty
In execute()
Getting PluggableAuth instance Plugin name: SimpleSAMLphp Authenticated existing user: Posha : No groupsync set. User is authorized.
What happens?:
- When Seting $wgPluggableAuth_EnableAutoLogin = true;
When trying to access app, Taking so much time in loading , its stuck on
https://abc.com/index.php?title=Special:UserLogin&returnto=Main+Page&returntoquery= & throwing 504 error.
If loading again.
then sometime its loading app but authentication is not happening.
- When setting $wgPluggableAuth_EnableAutoLogin = false;
then without authenticating user directly loads main page , & when clicking on login then loading... & 504.
- Since ERROR: return to URL is null or empty, so when I am directly putting link of mainpage
if ( $returnToUrl === null || strlen( $returnToUrl ) === 0 ) { $this->logger->debug( 'ERROR: return to URL is null or empty' ); //$this->getOutput()->wrapWikiMsg( "<div class='error'>\n$1\n</div>", 'pluggableauth-fatal-error' ); ** header( 'Location:https://abc.com/index.php/Main_Page' );** }
then its going to main page after loading but not showing logged in user name on main page & showing error
($name) must be of type string, null given, called in /var/www/html/extensions/PluggableAuth/includes/PrimaryAuthenticationProvider.php on line 161**
But in logs I can see I am authenticated & my user id too, but not in frontend.
2023-07-28 21:02:39 app-5b7999454-52tht wikipoc: Authenticated existing user: Posha 2023-07-28 21:02:39 app-5b7999454-52tht wikipoc: No groupsync set. 2023-07-28 21:02:56 app-5b7999454-52tht wikipoc: User is authorized. 2023-07-28 21:05:48 app-5b7999454-52tht wikipoc: In execute() 2023-07-28 21:05:49 app-5b7999454-52tht wikipoc: Getting PluggableAuth instance 2023-07-28 21:05:49 app-5b7999454-52tht wikipoc: Plugin name: SimpleSAMLphp 2023-07-28 21:05:52 app-5b7999454-52tht wikipoc: Authenticated existing user: Posha 2023-07-28 21:05:52 app-5b7999454-52tht wikipoc: No groupsync set. 2023-07-28 21:06:12 app-5b7999454-52tht wikipoc: User is authorized.
What should have happened instead?:
Earlier version its working properly, its taking time to load but at least working.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):