Bug 38022 - Identity Provider error 500 on /api
Summary: Identity Provider error 500 on /api
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Authentication (show other bugs)
Version: 23.11
Hardware: All All
: P3 major
Assignee: Bugs List
QA Contact: Testopia
URL: <baseurl>/api/v1/public/oauth/login/<...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-27 08:13 UTC by Aditya
Modified: 2024-09-27 08:13 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Screenshot of the bug (30.33 KB, image/png)
2024-09-27 08:13 UTC, Aditya
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya 2024-09-27 08:13:08 UTC
Created attachment 172100 [details]
Screenshot of the bug

There are 2 bugs to report. One, which already seems to be reported is, empty fields while editing identity provider in 24.05+ (main reason why koha was not updated and we sticked to stable 23.11)

Another bug is related to opening IDP API URL directly in browser such as <baseurl>/api/v1/public/oauth/login/<code>/opac which returns the following result in fresh/incognito session with no stored cookies (as in 23.11.08):
{
  "errors": [
    {
      "message": "Internal Server Error.",
      "path": "/"
    }
  ],
  "status": 500
}

The expected behavior should be redirecting to IDP page (which actually works fine when there are stored browser cookies due to visiting koha homepage for the first time and then trying this link).