This snippet use the g8 akka-http-quickstart template and use OAuth2 baerer to authenticate.
The list of tokens are given in the application.conf
file in src/main/resources
folder.
Run the server with sbt run
and try:
curl -H "Authorization: Bearer ABCD" http://localhost:8080/users