Hi Cyril,
On Fri, Sep 18, 2015 at 6:54 PM, Cyril Rognon <[email protected]> wrote:
> Hi Rajith,
>
> +1 for the imporvement.
>
> it is not clear what the configuraiton file will contain : an url toward
> IS to query the user roles ?
>
We thought of a server level configuration, not service level. So user will
need to implement the above interface in java and put the library in server
lib folder, then configure the extension in "dataservices.xml" config file.
In the config, user can provide any additional parameters he may need to
retrieve user roles. (for example if he tries to get roles from third party
user store, he may need credentials for that) sample config will be as
follows,
<roleHandler class="org.wso2.carbon.dataservices.core.RoleRetriever">
<roleProvider>https://localhost:9443/carbon/UserAdminService
</roleProvider>
<username>admin</username>
<password>pass</password>
</roleHandler>
>
> When designing the Service, how one will choose the "external"
> authorisation Provider option ?
>
Because this is a server level config, you won't need to choose external
provider in data service designing stage
Thanks,
--
Rajith Vitharana
Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture