solgenomics / sgn

The code behind the Sol Genomics Network, Cassavabase and other Breedbase websites
https://solgenomics.net
MIT License
66 stars 35 forks source link

Brapi connection failing when authentication is required #5063

Open chris263 opened 4 weeks ago

chris263 commented 4 weeks ago

Expected Behavior

The connection works fine if authentication is not required. However, if we set require_authentication = 1 the connection is not completed as expected, then making returning a message as following:

Screenshot from 2024-08-19 14-03-17

Here is the code: https://github.com/solgenomics/sgn/blob/f2872840611d56c1919623816404804f9f274c29/lib/SGN/Controller/AJAX/BrAPI.pm#L288

For Bugs:

Environment

Steps to Reproduce

lukasmueller commented 4 weeks ago

Which database is this from?

chris263 commented 4 weeks ago

I just set yambase with "brapi_require_login 1" and it is showing the same error at: https://yambase.org/brapi/v2/calls

chris263 commented 3 weeks ago

Maybe @bellerbrock has some thoughts about it?