Skip to content
Snippets Groups Projects
Commit 93ae4e17 authored by Joel Cavat's avatar Joel Cavat
Browse files

Improve documentation

parent 4221305f
No related branches found
No related tags found
No related merge requests found
# 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
......
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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment