-
Notifications
You must be signed in to change notification settings - Fork 3
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
[FR] Groups claim #320
Comments
Hey. Thanks for offering your support! I am not aware of any standard claims we could use. What IDP are you using and could you please post an example (jwt access token or ID token or user endpoint response). Thanks |
There isn't a standard claim sadly but there are some examples out there.
I personally use Kanidm which similar to Authilia has a groups scope and claim. Additionally it supports custom claims. In essence the requirement would be being able to specify an optional Additionally there can be groups which do not map to existing ownCloud groups since the IDM exposes all groups a user is in. For example a user cloud be in a group which allows access to a completely different application and has nothing to do with ownCloud. So I think the approach would be to only add users to groups which already exist. I will make a PR then. |
the interesting part here will be the mapping of the group identifiers ...
Cool - let me know if you have any questions! |
I have written the code and some unit tests but struggling to execute those tests. After some digging I found that the phpunit bin should live at Is there some special project setup that is needed to run unit tests? Sorry if this is a dumb question, I do not have much experience with php. |
Also I have two implementation questions. An additional scope will be needed next to the ones already required. Since this feature should be optional and there isn't a official standard for a scope like groups I do not want to add any arbitrary claim by default. So I would propose adding an additional config field Adding a user to groups is only done in |
testing owncloud apps is described in here - https://doc.owncloud.com/server/next/developer_manual/testing/unit-testing.html
The first proposed approach sounds god for me. THX
most probably something which got forgotten - feel free to fix this as well. preferably in a separate pull request. THX |
Hello there!
Short question. After reading trough the
auto-provision
config options I noticed that there is only an option to hardcode groups to be assigned to all new users and no option to set a groups claimIs there a reason that there is no option to configure a groups claim?
This would enable me to handle group membership for existing and new users in IDM.
If this is a desired feature I would be happy to volunteer my time. Just wanted to make sure this is actually feasible and desirable.
The text was updated successfully, but these errors were encountered: