Implementing keycloak in Explorer 2

I’ve setup an orthanc server in windows and trying to use explorer 2 with keycloak.

I was able to setup the connection between explorer 2 and keycloak and I can login successfully but the role permission is not working. I can still see all default permission in doctor user.

I’m not sure which config should I use and where should i put that config in the configuration folder since there’s no authorization.json or permissions.json (though I tried to create permissions.json but it is not working)

{
“roles” : {
“admin”: [“all”],
“doctor”: [“view”, “download”, “share”, “send”]
}
}
or

{
“roles” : {
“admin-role”: {
“permissions”: [“all”],
“authorized_labels”: [““]
},
“doctor-role”: {
“permissions”:[“view”, “download”, “share”, “send”],
“authorized_labels”: [”
”]
},
“external-role”: {
“permissions”:[“view”, “download”],
“authorized_labels”: [“external”]
}
}
}

This is the sample roles that I have.

Hi,

The role permissions are handled by an external web-service like this one.

Sorry but we only provide Docker based samples but, if you do not wish to run it through Docker, you “just” have to start and configure all services independently.

Best regards,

Alain

Hi Alain,

Thank you for your prompt response. I’ll delve deeper into the solution you provided. In case I encounter difficulties in implementing it successfully, I’m considering developing a custom application using the Laravel framework. My goal would be to replicate all the functionalities found in Explorer 2, particularly the viewers like Stone and OHIF. Is it possible to do so?

Thanks again for your assistance!

Yes, it is possible to do so. Have fun :wink: !