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

Use authenticated requests on the cluster #319

Merged
merged 4 commits into from
Dec 5, 2024
Merged

Conversation

jgreben
Copy link
Collaborator

@jgreben jgreben commented Dec 4, 2024

One last small PR. When run on the cluster we need to use authenticated requests.

@@ -7,11 +7,11 @@ module OkapiTaskHelpers
include FolioRequestHelper

def timers_get
JSON.parse(@@folio_request.unauthenticated_request('/_/proxy/tenants/sul/timers'))
JSON.parse(@@folio_request.authenticated_request('/_/proxy/tenants/sul/timers'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we pair on this? We don't have to be authenticated in order to run this within the cluster. Doing curl $OKAPI_URL/_/proxy/tenants/sul/timers from the folio-k8s-pod returns data.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

So I can change it to @@folio_request.request('/_/proxy/tenants/sul/timers') and that should work as well.

@jgreben jgreben merged commit a5852a7 into main Dec 5, 2024
2 checks passed
@jgreben jgreben deleted the okapi-timer-requests branch December 5, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants