René's URL Explorer Experiment


Title: Try to reauthenticate on a http status code 403 by pnbecker · Pull Request #59 · the-library-code/dspace-rest-python · GitHub

Open Graph Title: Try to reauthenticate on a http status code 403 by pnbecker · Pull Request #59 · the-library-code/dspace-rest-python

X Title: Try to reauthenticate on a http status code 403 by pnbecker · Pull Request #59 · the-library-code/dspace-rest-python

Description: If we get a http status code 403, we should try to reauthenticate in case the session timed out. If we then still get the error, our user might miss the permissions for the requested action.

Open Graph Description: If we get a http status code 403, we should try to reauthenticate in case the session timed out. If we then still get the error, our user might miss the permissions for the requested action.

X Description: If we get a http status code 403, we should try to reauthenticate in case the session timed out. If we then still get the error, our user might miss the permissions for the requested action.

Opengraph URL: https://github.com/the-library-code/dspace-rest-python/pull/59

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:24bea539-7887-061f-edd5-d2706b5fbdc9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB9C2:9F0EE:7E7241:AD7636:698F2A33
html-safe-nonce70553f85542fa0690f821f5e771bf990e111163a1c5a30a3baffa712de66b74e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOUMyOjlGMEVFOjdFNzI0MTpBRDc2MzY6Njk4RjJBMzMiLCJ2aXNpdG9yX2lkIjoiNDQyNzg2MzYwNjA2NzkzMTcwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac51e5577c2e1c1eabbabeb6da2a8f648da143a510a3bc36211c742dcf116cde15
hovercard-subject-tagpull_request:3237584384
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/the-library-code/dspace-rest-python/59/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c4d4b7442c5eea1df3ea3b2ff41443d2b8feb5d160a15ca3af174b606c52b59e/the-library-code/dspace-rest-python/pull/59
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c4d4b7442c5eea1df3ea3b2ff41443d2b8feb5d160a15ca3af174b606c52b59e/the-library-code/dspace-rest-python/pull/59
og:image:altIf we get a http status code 403, we should try to reauthenticate in case the session timed out. If we then still get the error, our user might miss the permissions for the requested action.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepnbecker
hostnamegithub.com
expected-hostnamegithub.com
None6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1
turbo-cache-controlno-preview
go-importgithub.com/the-library-code/dspace-rest-python git https://github.com/the-library-code/dspace-rest-python.git
octolytics-dimension-user_id29141623
octolytics-dimension-user_loginthe-library-code
octolytics-dimension-repository_id457651426
octolytics-dimension-repository_nwothe-library-code/dspace-rest-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id457651426
octolytics-dimension-repository_network_root_nwothe-library-code/dspace-rest-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released52a41ad9b9ffb9b63a1b4a600a6054be8b70b36
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fthe-library-code%2Fdspace-rest-python%2Fpull%2F59
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fthe-library-code%2Fdspace-rest-python%2Fpull%2F59
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=the-library-code%2Fdspace-rest-python
Reloadhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
Reloadhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
Reloadhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
the-library-code https://patch-diff.githubusercontent.com/the-library-code
dspace-rest-pythonhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fthe-library-code%2Fdspace-rest-python
Fork 30 https://patch-diff.githubusercontent.com/login?return_to=%2Fthe-library-code%2Fdspace-rest-python
Star 38 https://patch-diff.githubusercontent.com/login?return_to=%2Fthe-library-code%2Fdspace-rest-python
Code https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python
Issues 20 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/issues
Pull requests 5 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pulls
Projects 0 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/projects
Security 0 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/security
Insights https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pulse
Code https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python
Issues https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/issues
Pull requests https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pulls
Projects https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/projects
Security https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/security
Insights https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fthe-library-code%2Fdspace-rest-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fthe-library-code%2Fdspace-rest-python%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#issue-comment-box
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
mainhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/tree/main
reauthenticatehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/tree/reauthenticate
Try to reauthenticate on a http status code 403 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#top
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
mainhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/tree/main
reauthenticatehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/tree/reauthenticate
Conversation 4 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
Commits 4 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits
Checks 0 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/checks
Files changed https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
Feb 2, 2026https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#issue-3887095003
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
dpkhttps://patch-diff.githubusercontent.com/dpk
February 2, 2026 17:20https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22472856580
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
enhancement https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/issues?q=state%3Aopen%20label%3Aenhancement
Feb 2, 2026https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22472860793
https://patch-diff.githubusercontent.com/quasipoint
quasipointhttps://patch-diff.githubusercontent.com/quasipoint
dpkhttps://patch-diff.githubusercontent.com/dpk
February 3, 2026 09:56https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22491913972
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
quasipointhttps://patch-diff.githubusercontent.com/quasipoint
February 3, 2026 10:01https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22492096842
https://patch-diff.githubusercontent.com/quasipoint
quasipointhttps://patch-diff.githubusercontent.com/quasipoint
Feb 3, 2026 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#pullrequestreview-3745705604
View reviewed changes https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files
dspace_rest_client/client.pyhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files#diff-d81822192f83db82bebff74c35401038bd4f56d180f571d38b6b1d06d23fed12
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
February 3, 2026 18:28https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#commits-pushed-28d7e72
https://patch-diff.githubusercontent.com/pnbecker
Use decorator to update csrf token instead of parameter retryhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/28d7e7258a1cf28367245473ce98ac5daf712541
28d7e72https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/28d7e7258a1cf28367245473ce98ac5daf712541
https://patch-diff.githubusercontent.com/pnbecker
Try to reauthenticate on a http status code 403https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/427dd648d00855186ab7cc8112a74e372920ed4c
427dd64https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/427dd648d00855186ab7cc8112a74e372920ed4c
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
force-pushedhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/compare/16843a2781bfe73c3e1d54f0455015976146b65d..427dd648d00855186ab7cc8112a74e372920ed4c
16843a2https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/commit/16843a2781bfe73c3e1d54f0455015976146b65d
427dd64https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/commit/427dd648d00855186ab7cc8112a74e372920ed4c
Compare https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/compare/16843a2781bfe73c3e1d54f0455015976146b65d..427dd648d00855186ab7cc8112a74e372920ed4c
February 3, 2026 17:30https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22504226434
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
Feb 3, 2026https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#issuecomment-3842672767
@quasipointhttps://github.com/quasipoint
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
https://patch-diff.githubusercontent.com/pnbecker
pnbeckerhttps://patch-diff.githubusercontent.com/pnbecker
quasipointhttps://patch-diff.githubusercontent.com/quasipoint
February 3, 2026 17:32https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#event-22504257222
https://patch-diff.githubusercontent.com/pnbecker
handle create_bitsream as special case and try reauthentication manuallyhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/3b9176aff1176ac789b2d9cc9223ba2f823a5200
3b9176ahttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/3b9176aff1176ac789b2d9cc9223ba2f823a5200
https://patch-diff.githubusercontent.com/quasipoint
quasipointhttps://patch-diff.githubusercontent.com/quasipoint
Feb 4, 2026 https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59#pullrequestreview-3751048996
View reviewed changes https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files/3b9176aff1176ac789b2d9cc9223ba2f823a5200
dspace_rest_client/client.pyhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files/3b9176aff1176ac789b2d9cc9223ba2f823a5200#diff-d81822192f83db82bebff74c35401038bd4f56d180f571d38b6b1d06d23fed12
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
https://patch-diff.githubusercontent.com/pnbecker
Fix reauthenticate in create_bitstream()https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/344bccfa4853eae42babbff1513158a8ad53f14c
344bccfhttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/commits/344bccfa4853eae42babbff1513158a8ad53f14c
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fthe-library-code%2Fdspace-rest-python%2Fpull%2F59
https://patch-diff.githubusercontent.com/quasipoint
quasipoint https://patch-diff.githubusercontent.com/quasipoint
https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59/files/3b9176aff1176ac789b2d9cc9223ba2f823a5200
enhancement https://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/issues?q=state%3Aopen%20label%3Aenhancement
Please reload this pagehttps://patch-diff.githubusercontent.com/the-library-code/dspace-rest-python/pull/59
https://patch-diff.githubusercontent.com/pnbecker
https://patch-diff.githubusercontent.com/quasipoint
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.