# Custom Javascript Authenticator Provider

**URL:** <https://forum.keycloak.org/t/custom-javascript-authenticator-provider/4921>\
**Category:** Extending the server\
**Tags:** authentication\
**Created:** [September 17, 2020, 3:42pm UTC](https://forum.keycloak.org/t/custom-javascript-authenticator-provider/4921 "2020-09-17T15:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tannu13](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tannu13](https://forum.keycloak.org/u/tannu13)\
**Post date:** [September 17, 2020, 3:42pm UTC](https://forum.keycloak.org/t/custom-javascript-authenticator-provider/4921/1 "2020-09-17T15:42:35Z")

</div>

I have gone through the [JS provider](https://github.com/keycloak/keycloak-documentation/blob/master/server_development/topics/providers.adoc#javascript-providers) and followed it to create a custom authenticator. The thing is the script is not getting listed in Providers section in server info as was my understanding that it should. Am I looking at the wrong place? I did only provide the authenticators in the json file and not the policies and mappers as I did not understand what would go inside them.

I am trying to create a custom authenticator for one of our clients who are on an LDAP server and will not provide an admin user for the keycloak’s user federation via ldap. The best they can do is provide an API endpoint which can be used to query if the credentials given by the user are valid. So wanted to create a custom authenticator that would hit the API endpoint with the credentials and on success, somehow generate the token for the application.

Looking at other possibilities as well but thought JS provider might be able to solve it for us.

P.S. - Let me know if extra info is needed as I might have missed something.

---

<div class="post-metadata">

**Author:** ![hesteban](https://avatars.discourse-cdn.com/v4/letter/h/6de8d8/32.png) [@hesteban](https://forum.keycloak.org/u/hesteban)\
**Post date:** [September 20, 2021, 7:48pm UTC](https://forum.keycloak.org/t/custom-javascript-authenticator-provider/4921/2 "2021-09-20T19:48:53Z")

</div>

I was having exactly the same issue. I built a jar as described in the latest doc (not using upload) but it didn’t show up. I had to add this to the command line:

`-Dkeycloak.profile.feature.scripts=enabled`
