cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
125 stars 67 forks source link

Login with XING does not work #467

Closed Fanvaron closed 4 years ago

Fanvaron commented 6 years ago

Hello, I tried implementing the HybridAuth options. I configured both LinkedIn and Xing. And while LinkedIn works without problem Xing does not.

When I click the Button I get the following Messages Logged.

[2018-02-21 17-18-53] PHP Notice: Undefined index: oauth_token in /var/www/html/YAWIK/vendor/hybridauth/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php:85  @  http://stellenboerse.dev.example.com/login/hauth?hauth.start=XING&hauth.time=1519229932 
[2018-02-21 17-18-53] PHP Notice: Undefined index: oauth_token_secret in /var/www/html/YAWIK/vendor/hybridauth/hybridauth/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php:85  @  http://stellenboerse.dev.example.com/login/hauth?hauth.start=XING&hauth.time=1519229932 
[2018-02-21 17-18-53] Zend\ServiceManager\Exception\ServiceNotCreatedException: Service with name "HybridAuth" could not be created. Reason: Authentication failed! XING returned an error: 401 Unauthorized.. in /var/www/html/YAWIK/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:765 caused by Exception: Authentication failed! XING returned an error: 401 Unauthorized.. in /var/www/html/YAWIK/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Auth.php:169  @  http://stellenboerse.dev.example.com/login/xing?ref=%252Flogin%252Fxing  @@  exception--2018-02-16--18-26--3b16327f02.html

I triple checked the right key and secret (The fact that Xing is key and every thing else is id was a little disorienting as well) But to be specific, I did:

I did so 5 days ago (and just now again to make sure I did it right).

Does anyone know what the two extra errors mean? Also is there a way for me to see the actual call to Xing, to see if the right key etc. even gets there?

Sincerely Marvin

cbleek commented 6 years ago

YAWIK authenticates against a XING app. Afaik XING does not support apps any more. At least it's not possible to add apps at https://dev.xing.com.

Authentication in our Demo is currevtly working, because it uses a Xing app.

The YAWIK auth module has propably modified to support XING plugins.

See: https://github.com/FabianBeiner/HybridAuth-XING

I think this means, that HybridAuth cannot be used with XING any more.