Hi,

Based on annotator 2.0, I am trying to assign user name and permission to 
annotation via identity and authz modules. For now, I stored user account and 
permission information in Mysql and got user name on client side.


I am new to annotator and kind of stuck on using identity and authz module. 
Docs in V2.x is limited 
(http://docs.annotatorjs.org/en/latest/api/authz.html#annotator.authz.acl).


I will be great appreciate if any body give me hint or example of use identity 
and authz?


For module identity

I tried put user name to identity but nothing affected after annotation created:

app.include(annotator.identity.simple);

app.start().then(function ()
             {  app.ident.identity = getCookie('username');

                app.annotations.load();

    }


For module authz

I don't know how to bring the module below in and feeds parameters



annotator.authz.AclAuthzPolicy.prototype.permits(action, context, identity)



Best wishes,

Yifan
_______________________________________________
annotator-dev mailing list
annotator-dev@lists.okfn.org
https://lists.okfn.org/mailman/listinfo/annotator-dev
Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev

Reply via email to