From 93ae4e173fa590043f3a6f8448f1c0f244e29fad Mon Sep 17 00:00:00 2001 From: Joel Cavat <jcavat@gmail.com> Date: Mon, 25 Feb 2019 13:30:03 +0100 Subject: [PATCH] Improve documentation --- README.md | 10 +++++++--- build.sbt | 2 -- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c407db5..de47469 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 35f4ce4..33341c0 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( -- GitLab