API Key authentication


I’m currently working on a web application using Scala/Play as a backend (Angular as a frontend). I’m using Silhouette as authentication service. For now, I’m using it with the JWT identification system, so the user needs to provide a username/password to authenticate.
But, I’d like to open the REST API to machines, to let other developers consume my services.
In order to be more “software compliant” I’m trying to find a way to implement an API KEY system to let machines authenticate with a single token which had no expiration time.
Any idea on how to do that with Silhouette ?
Thanks everyone :slight_smile:


Have you read: https://www.silhouette.rocks/docs/providers#section-request-providers?

Anyway it’s currently not possible to use different authenticators for a single endpoint.