Hi everybody,
I am using keycloak as access manager with the authorization plugin of Orthanc. Now I’m wondering, how can I call Orthanc REST API? An important aspect is that I’m using keycloak integrated with Microsoft Entra ID (so it doesn’t stores username and password because it is Entra ID that provides the authentication).
Can anyone help me?
Tks,
Gio
Hello Gio!
Have you already had a look on this:
orthanc-auth-service/minimal-setup/keycloak at main · orthanc-team/orthanc-auth-service · GitHub ?
From your description, it should bring a solution to you…
HTH,
Benoit
Hi Benoit,
tks for your reply. Yes I have read and I followed that implementation. But my question is a bit specific. When you use Orthanc, with keycloak integration, first question is:
How can you call an API of orthanc if you need to pass the access token generated by keycloak? For me is quite confusing. Following the example of the auth-service, I am connectiong with keycloak to orthanc. Now, If i want to call via curl an API of orthanc, i think I have to insert the token. Where is this token?
Tks,
Gio
Hi Gio,
Did you notice that Benoît pointed you to the very specific documentation about API-KEYS which is how you can call the API from curl which seems to match exactly what you need.
If you want to proceed another way, feel free to do so, all the materials are there …
Best regards,
Alain