shinyproxy icon indicating copy to clipboard operation
shinyproxy copied to clipboard

Access to an application based on a table in database

Open samaprashanth opened this issue 2 years ago • 2 comments

Hi,

I was able to successfully deploy my applications on shinyproxy and was wondering if it is possible to use a table on my database (this table contains list of users and their respective access for the apps that are deployed) as means for shinyproxy to figure out which users have access to which apps instead of using access-groups or access-users in the config file.

My authentication is based on LDAP but unfortunately we are not allowed to create groups for the users on our LDAP. So we want to create a database described above and use it to define the access for the apps deployed. Is there any way we can use this database to define the access.

Any help is much appreciated.

Thank you ....!!!

samaprashanth avatar Aug 23 '23 17:08 samaprashanth

Hi, this is currently not possible. We try to keep the configuration of ShinyProxy into a single file and independent of a database.

If you have some Java experience, you can relatively easy implement this by changing this class https://github.com/openanalytics/containerproxy/blob/master/src/main/java/eu/openanalytics/containerproxy/service/AccessControlEvaluationService.java#L47 . I'm happy to assist if you have a question about the code.

I'll keep this issue open as a feature request, but I don't think we will implement integration with a database soon.

LEDfan avatar Sep 01 '23 13:09 LEDfan

Thank you ..!!! Unfortunately, I have zero experience in Java but for now I am using an automated code to generate list of users in access-users option within the config file. Will definitely reach out to you if we want to use the above solution. Thanks again.

samaprashanth avatar Sep 06 '23 17:09 samaprashanth