On Wed, Jan 4, 2017 at 1:04 PM, Nipuna Chandradasa <nipu...@wso2.com> wrote:

> [+adding Sajith]
> Please find the my questions and suggestions in line....
>
>>
>>>> Based on the above model we have following questions.
>>>> 1. How can we call the isAuthorized method from dashboard component ?
>>>>
>>>
> Isn't this isAuthorized method should be exposed through UUF as dashboard
> component is basically a UUF component? It might not be good to expose a
> such a functionality through a UI framework but it'll be lot cleaner than
> invoking a OSGI service inside our component.
>

Once you login using CAAS (carbon authentication and authorization service)
components you will get a CAAS User object [1]. This User object is a proxy
object which can be used to call all the underlying identity store and
authorization store methods. Ideally you will store this User object in the
user's logged in session and perform those operations when necessary.

[1]
https://github.com/wso2/carbon-security/blob/release-1.0.0-m2/components/org.wso2.carbon.security.caas/src/main/java/org/wso2/carbon/security/caas/user/core/bean/User.java

Regards,
Johann.



>
>
>> 2. Is there any standard / approval process for permission strings ?
>>>>
>>> 3. How should we register the permissions dynamically at the time of
>>>> creating a dashboard?
>>>>
>>>> Appreciate your insight.
>>>>
>>>
>>>
> Thank you,
>
> --
> Nipuna Marcus
> *Software Engineer*
> WSO2 Inc.
> http://wso2.com/ - "lean . enterprise . middleware"
> Mobile : +94 (0) 713 667906 <+94%2071%20366%207906>
> nipu...@wso2.com
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Technical Lead & Product Lead of WSO2 Identity Server
Governance Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+94777776950*
Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to