https://github.com/alextanhongpin/akka-openid
Simple scala with akka-http setup
https://github.com/alextanhongpin/akka-openid
akka-http akka-openid openid-client scala
Last synced: 7 months ago
JSON representation
Simple scala with akka-http setup
- Host: GitHub
- URL: https://github.com/alextanhongpin/akka-openid
- Owner: alextanhongpin
- Created: 2017-06-27T08:56:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T06:04:16.000Z (over 8 years ago)
- Last Synced: 2025-01-29T21:54:25.603Z (9 months ago)
- Topics: akka-http, akka-openid, openid-client, scala
- Language: Scala
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Akka-OpenID client
Attempt to create an openid client with Akka-HTTP. Present version of Scala is `2.12.2`, but we are going to use Scala version `2.11.1` due to the library compatibility.
## Starting the database
Run the docker mongodb container
```bash
$ bash db.sh
$ docker exec -i -t akka-openid bash
```
## Reactive-Mongo
When using this library, you have to specify a logging framework, e.g. SLF4J. The example below shows how to include it in your `build.sbt`. The reason is because SLF4J is now used by the ReactiveMongo logging, so a SLF4J binding must be provided. Read more about it [here](http://reactivemongo.org/releases/0.12/documentation/tutorial/setup.html).
```sbt
"org.reactivemongo" % "reactivemongo_2.11" % "0.12.4",
"org.slf4j" % "slf4j-simple" % "1.7.25",
"org.slf4j" % "slf4j-api" % "1.7.25"
```
Else, the following error will be raised.
```bash
$ NoClassDefFoundError: : org/slf4j/LoggerFactory
```