[annotator-dev] Setting "user" for annotations

Randall Leeds randall at bleeds.info
Wed Oct 28 01:32:52 UTC 2015


The `userId` field in the token should do this.

On Tue, Oct 27, 2015 at 6:16 PM Денис Обыденных <denis.obydennykh at gmail.com>
wrote:

> Hello.
>
> I've got a wordpress blog and trying to make annotations. Basic
> functionality works ok.
>
> But I have several authors and want for each of them - set own user name
> for annotation. Using signle key/secret from annotateit.org
>
> I've tried
> 1. Auth plugin: get jwt token with user field - this seems to be useles,
> this field is not used in token
> 2. Permissions plugin: set "user" field - this seems to change what send
> to server
>
> Now I send to annotateit.org
> user: "test user"
>
> But always recieve back:
> user: "denis.obydennykh"
>
> So the question is: how can I set user name for annotations using single
> key/secret?
>
> JS Code now:
>
>> element.annotator() .annotator('setupPlugins', null, { Store: {
>> annotationData: {uri: '
>> http://gid.guru/populyarnye-marshruty/zolotoe-koltso.html'},
>> loadFromSearch: {uri: '
>> http://gid.guru/populyarnye-marshruty/zolotoe-koltso.html', limit: 200} }
>> }) .annotator('addPlugin', 'Auth', { token: 'xxx' })
>> .annotator('addPlugin', 'Permissions', { user: 'test user' });
>
>
> --
> Всего наилучшего, Обыденных Денис
> ICQ: 40-10-808 Skype: denis.obydennykh
> http://avtomurmansk.ru/
> _______________________________________________
> annotator-dev mailing list
> annotator-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/annotator-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/annotator-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20151028/d873a5ad/attachment-0004.html>


More information about the annotator-dev mailing list