By: Dawid Szejnfeld user 23 Mar 2015 at 9:22 a.m. CDT

4 Responses
Dawid Szejnfeld gravatar
Hi Yuriy, well my previous ticket was closed and I couldn't reopen it. I'm using gluu server 2.1 which is now recommended on the website. Maybe I'm still a little bit newbie so far but I cannot see any functionality of assigning scopes to end users as you suggested. Is there any place in gluu to store information you had suggested in your response in previous ticket? So roles related to scopes and such roles assignment to end user's profiles? Or maybe we should use some newer branch? Dawid

By Yuriy Zabrovarnyy staff 23 Mar 2015 at 9:34 a.m. CDT

Yuriy Zabrovarnyy gravatar
Hi Dawid, I didn't know it's not possible to re-open ticket, I will leave this one 'in-progress' :). Please take a look to script I've written to you in previous ticket. Actually mapping is inside "if" statement: hasRole('Manager') or hasRole('Viewer'). It is mapping you need, isn't it? It is mapping for "view" scope. So for "edit" scope you would probably (not sure about your requirements) need another script which would allow to edit only Manager role: hasRole('Manager') We don't have built-in hasRole() function, so you would probably need to implement it on your own (or ask official Gluu support). Thanks, Yuriy

By Dawid Szejnfeld user 23 Mar 2015 at 9:49 a.m. CDT

Dawid Szejnfeld gravatar
Sure understood - anyway such functionality must be added as extension as I said primarily. The same regarding storing such info in ldap. That's why we would like to use already existing groups in gluu to simulate roles - that was my point - and then I can create functionality like hasRole but users will be assigned to groups (roles) which can be stored already in ldap - the name of the group will be in fact like a scope within particular protected resource. Otherwise I would have to create new Role entity with ldap persistence and then add functionality to assign scopes to roles and finally assign roles to user profiles as a custom attribute. Is my reasoning rational? Which way would you choose? I wonder is such functionality is possibly interesting to you as a part of gluu? Thanks, Dawid

By Dawid Szejnfeld user 23 Mar 2015 at 9:51 a.m. CDT

Dawid Szejnfeld gravatar
I wonder if such functionality would be interesting for you as a part of gluu server anyway?

By Yuriy Zabrovarnyy staff 23 Mar 2015 at 10:11 a.m. CDT

Yuriy Zabrovarnyy gravatar
It seems we are talking about the same thing but in different words. Sounds rational to me.