question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't inject JWT in Instance call ?

See original GitHub issue

Hi there,

I have my DicomWeb server accessible through a reverse proxy using a JWT auth mechanisme, so I need to inject the Authorization Bearer in the requests going from OHIF.

I did this

servers: { dicomWeb: [ { name: “Orthanc”, wadoUriRoot: “/api/wado”, qidoRoot: “/api/dicom-web”, wadoRoot: “/api/dicom-web”, qidoSupportsIncludeField: true, imageRendering: “wadors”, thumbnailRendering: “wadors”, enableStudyLazyLoad: true, requestOptions : { auth: (options) => { return Bearer ${token}} } } ] },

It is working properly to get the /series /metadata APIs but does not work for the /instances/{UID}/frames/1 API. The outgoing request do not includes au authorization header for Instance fetching while it is OK for series and metadata,

How can I set the token to be included in every http request of OHIF ?

thanks for help,

Best regards,

Salim

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Diexcommented, Aug 14, 2020
0reactions
salimkanouncommented, Feb 14, 2022

It work by passing the token in the URL parameter.

Le lun. 14 févr. 2022 à 17:25, Pavan Kumar Jadda @.***> a écrit :

@salimkanoun https://github.com/salimkanoun have you ever fixed the issue?

— Reply to this email directly, view it on GitHub https://github.com/OHIF/Viewers/issues/1870#issuecomment-1039280293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGAPT7RXO3Q5QE3SOMMWSTTU3ETQLANCNFSM4ORNKN7A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting JWT validation - Google Cloud
Ensure that the following claims are present in the JWT payload: "sub" (subject), "iss" (issuer), and "aud" (audience). The following is an example...
Read more >
Extended (JWT) OncePerRequestFilter cannot be invoked ...
I found out that the private static JwtAuthorizationFilter authenticationJwtTokenFilter() method is calling the issue. If i change that to a ...
Read more >
REST Security with JWT using Java and Spring Security - Toptal
The generateToken() method is called from login and signup REST services, which are unsecured and will not trigger any security checks or require...
Read more >
Using JWT RBAC - Quarkus
4, Here we check if the call is insecure by checking the request user/caller ... If the JWT token can not be injected,...
Read more >
JWT authentication: Best practices and when to use it
What is JWT? When to use JWT authentication; Why you shouldn't use JWTs as session tokens; Using JWT for API authentication; How to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found