steamauth doesn't validate steam login
Currently I am developing a website that has a steam login. I am using steamauth for this. https://github.com/SmItH197/SteamAuthentication
Seems like sometimes when logging in, I get a message "User is not logged in". This happens when $openid->validete() returns false.
This is what I found out: The login doesn't work when I call it from my home page (<\a href = "www.domainname.com?login">Login</a>), but it does work from my tournament page (<\a href = "www.domainname.com/tournament/?login">Login</a>). That is odd.
I checked openid.php and found out, that when logging from my homepage $this->data['openid_return_to'] and $this->returnUrl do not match.
$this->data['openid_return_to'] returns http://domainname.com/?login
$this->returnUrl returns http://domainname.com/?login&openid_ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid_mode=id_res&openid_op_endpoint=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Flogin&openid_claimed_id=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2Fsteamid&openid_identity=https%3A%2F%2Fsteamcommunity.com%2Fopenid%2Fid%2Fsteamid&openid_return_to=http%3A%2F%2Fdomainname.com%2F%3Flogin&openid_response_nonce=2018-07-09T11%3A42%3A41ZMU9xfaGwYHm9LV9OKyVlukYsq8E%3D&openid_assoc_handle=1234567890&openid_signed=signed%2Cop_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_nonce%2Cassoc_handle&openid_sig=wHVdalOX2o1pXDBn4FUHoVNXxH8%3DUser
-login is failed.
When logging from tournament page both return http://domainname.com/?login and log in is successful
I am using wordpress and create both home page and tournament page from admin control panel
Sorry if dub. Thanks in advance