[annotator-dev] x-annotator-auth-token

Randall Leeds tilgovi at hypothes.is
Thu Mar 20 17:56:32 UTC 2014

Some questions

- What version of Annotator?
 - Are you using the default Store plugin in both cases?
 - Just to be sure, are you using your credentials from your user page on
annotateit.org to generate your token?

On Thu, Mar 20, 2014 at 8:57 AM, Andrew MacDonald <
andrew_james_macdonald at yahoo.com> wrote:

> Hello dev team,
> I'm having trouble getting my local authentication working with the
> AnnotateIt store.
> So far, I have produced a local authentication token endpoint, using the
> JsonToken Java library. This seems to work, as the Annotator plugin calls
> my endpoint and it returns a token (and the Annotator doesn't throw any
> "couldn't get auth token" errors). However, when I try to store an
> annotation on AnnotateIt I get a 401 unauthorized response. When I use the
> http://annotateit.org/api/token endpoint for authorization, everything
> works as expected. Comparing the headers between the two approaches, I
> notice that when using my local authentication, subsequent calls to
> AnnotateIt don't include the x-annotator-auth-token request header, which I
> assume is why I'm getting the unauthorized response.
> Any idea what I'm doing wrong? If you require more details please let me
> know.
> Thanks,
> Andrew
> _______________________________________________
> 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/20140320/8bbe5504/attachment-0004.html>

More information about the annotator-dev mailing list