GluuFederation / oxTrust

Gluu Server UI for managing authentication, authorization and users.
https://gluu.org/docs/ce
MIT License
134 stars 61 forks source link

UMA 2 : resource added via api exists in ldap but is not visible on GUI #716

Closed yuriyz closed 7 years ago

yuriyz commented 7 years ago

https://support.gluu.org/access-management/4480/cannot-add-resource-or-resource_set-in-uma2/#at25249

shekhar16 commented 7 years ago

@yuriyz I checked the ldap and found we have 2 similar ou i.e resource_set and resource. Presenlty the Uma>resources is implemented for ou=resources not for resource_set.

image

object class for resources is oxUmaResource and for resource_set is oxAuthUmaResourceSet. So are we replacing resources with resource_set and there respective classes. And oxAuthUmaResourceSet object class is not declared in gluu.schema. Please let me know.

yuriyz commented 7 years ago

In UMA 2 we have 'resource' name instead of 'resource set' as it was in UMA 1.0.1. So now we are using ou=resources and oxUmaResource. ou=resource_sets and oxAuthUmaResourceSet is removed.

yuriyz commented 7 years ago

Also I hope u are reusing oxauth ldap classes instead of duplicating. For uma resource it is https://github.com/GluuFederation/oxAuth/blob/version_3.1.0/Model/src/main/java/org/xdi/oxauth/model/uma/persistence/UmaResource.java#L24-24

shekhar16 commented 7 years ago

Fixed.

image

shekhar16 commented 7 years ago

image

yuriyz commented 7 years ago

@shekhar16 fix is not in version_3.1.1 branch. Please merge or cherry-pick.

shekhar16 commented 7 years ago

its working on 3.1.1 version.