# User authentication for Prodigy web app

**URL:** <https://support.prodi.gy/t/user-authentication-for-prodigy-web-app/274>\
**Category:** Uncategorized\
**Tags:** custom, front-end, solved\
**Created:** [February 1, 2018, 3:40pm UTC](https://support.prodi.gy/t/user-authentication-for-prodigy-web-app/274 "2018-02-01T15:40:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)\
**Post date:** [February 1, 2018, 4:27pm UTC](https://support.prodi.gy/t/user-authentication-for-prodigy-web-app/274/2 "2018-02-01T16:27:13Z")

</div>

In theory, you can inject your own scripts via [custom HTML templates](https://prodi.gy/docs/web-app#html-templates) or even by modifying `static/index.html`. However, this only really works for things like analytics integration, not for logic that’s supposed to interact with the standalone, pre-compiled React application.

Instead, a better (and possibly more secure) solution would probably be to handle this on the server side and only _start up and serve_ the Prodigy app if the user is already authenticated. [My comment in this thread](https://support.prodi.gy/t/multiple-annotators-with-different-data/188/2?u=ines) describes a solution to a very similar question. This gives you maximum flexibility over how you want to present the annotator login. And using a custom recipe (e.g. one that wraps the built-in `textcat.teach`), you can very easily put your own service inbetween Prodigy and the annotator(s), and even manage the annotation tasks that get sent out on a per-user basis. If you search the forum for [“multiple annotators”](https://support.prodi.gy/search?q=%22multiple%20annotators%22), you’ll find some more examples of this.

There are also some pretty cool solutions contributed by other users – for example [a snippet for basic authentication](https://support.prodi.gy/t/super-basic-authentication/233) and a script for a bare-bones [multi-annotator setup](https://support.prodi.gy/t/code-sharing-multi-annotator-setup/235) by @andy.

---

_[View the full topic](https://support.prodi.gy/t/user-authentication-for-prodigy-web-app/274)._
