Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth: user without patron returns error #3607

Closed
PascalRepond opened this issue Feb 22, 2024 · 0 comments
Closed

OAuth: user without patron returns error #3607

PascalRepond opened this issue Feb 22, 2024 · 0 comments
Assignees
Labels
bug Breaks something but is not blocking dev: monitoring Alert system like Sentry or Zabbix.

Comments

@PascalRepond
Copy link
Contributor

Bug description:

When calling the patrons API for OAuth (example: https://bib.rero.ch/api/patrons/info?access_token=xxxxxxx), if the user linked to the access token has no patron, there is an error (see Sentry: RERO-ILS-530).

Expected behavior:

When such a call is made, a more telling error should be returned, for example : "This user is not linked to an institution and can therefore not be authorized."

@PascalRepond PascalRepond added the bug Breaks something but is not blocking label Feb 22, 2024
@PascalRepond PascalRepond added the dev: monitoring Alert system like Sentry or Zabbix. label Feb 22, 2024
@PascalRepond PascalRepond moved this from Inbox to Product Backlog in RERO ILS issues Feb 22, 2024
rerowep added a commit to rerowep/rero-ils that referenced this issue Feb 27, 2024
* Fixes API /info for users without patron.
* Closes: rero#3607.

Co-Authored-by: Peter Weber <[email protected]>
@Garfield-fr Garfield-fr moved this from Product Backlog to In Development in RERO ILS issues Feb 28, 2024
@rerowep rerowep moved this from In Development to Ready to test in RERO ILS issues Feb 28, 2024
rerowep added a commit to rerowep/rero-ils that referenced this issue Feb 29, 2024
* Fixes API /info for users without patron.
* Closes: rero#3607.

Co-Authored-by: Peter Weber <[email protected]>
@rerowep rerowep closed this as completed in acf40ef Mar 4, 2024
@github-project-automation github-project-automation bot moved this from Ready to test to Done in RERO ILS issues Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking dev: monitoring Alert system like Sentry or Zabbix.
Projects
Archived in project
Development

No branches or pull requests

2 participants