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: add patron pid #3786

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open

Conversation

rerowep
Copy link
Contributor

@rerowep rerowep commented Nov 26, 2024

  • Adds patron_pid to scope.

@rerowep rerowep self-assigned this Nov 26, 2024
@rerowep rerowep force-pushed the wep-oauth-patron_pid branch 4 times, most recently from ed906e9 to a3b19b7 Compare November 26, 2024 14:25
rero_ils/modules/patrons/views.py Outdated Show resolved Hide resolved
@rerowep rerowep force-pushed the wep-oauth-patron_pid branch 5 times, most recently from 4684778 to 99797ca Compare November 29, 2024 13:08
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <[email protected]>
birthdate = "rero_ils.oauth.scopes:birthdate"
patrons = "rero_ils.oauth.scopes:patrons"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe even call this scope "patron_info" to be even more clear

patron["patron"]["type"] = PatronType.get_record_by_pid(
extracted_data_from_ref(patron["patron"]["type"]["$ref"])
)
# user = User.get_record(current_user.id).dumps_metadata()

# Birthdate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move the comment

@PascalRepond
Copy link
Contributor

Please update your commit message to explain what we did. This doesn't close #3710.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants