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

Access to an application based on a table in database #445

Open
samaprashanth opened this issue Aug 23, 2023 · 2 comments
Open

Access to an application based on a table in database #445

samaprashanth opened this issue Aug 23, 2023 · 2 comments

Comments

@samaprashanth
Copy link

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 ....!!!

@LEDfan
Copy link
Member

LEDfan commented Sep 1, 2023

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.

@samaprashanth
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants