diff --git a/README.md b/README.md index c407db519e0cee6b8d8e8b936a534f916f373de3..de47469e4c68dbeb3ef9033bf2f8fed631875dd4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ +# Akka snippet with OAuth2 Bearer -# Work in progress +## Summary -## Abstract +This snippet use the g8 [akka-http-quickstart](https://github.com/akka/akka-http-quickstart-scala.g8) template and use +OAuth2 baerer to authenticate. -Http server providing bearer OAuth2 authorization +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 diff --git a/build.sbt b/build.sbt index 35f4ce453544f0271d61e931d6044984b0b3dc92..33341c049b93c01f5eeabddb2712f90d80c849d5 100644 --- a/build.sbt +++ b/build.sbt @@ -1,8 +1,6 @@ lazy val akkaHttpVersion = "10.1.7" lazy val akkaVersion = "2.5.21" -fork in run := true - lazy val root = (project in file(".")). settings( inThisBuild(List(