Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 406 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 406 Bytes

Akka snippet with OAuth2 Bearer

Summary

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