Skip to content

Commit 77fc008

Browse files
committed
release 1.6.0
1 parent 74746e8 commit 77fc008

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ In this case, you need to implement your own OAuth provider working with web fra
3434

3535
```scala
3636
libraryDependencies ++= Seq(
37-
"com.nulab-inc" %% "scala-oauth2-core" % "1.5.0"
37+
"com.nulab-inc" %% "scala-oauth2-core" % "1.6.0"
3838
)
3939
```
4040

4141
## How to use
4242

4343
### Implement DataHandler
4444

45-
Whether you use Play Framework or not, you have to implement ```DataHandler``` trait and make it work with your own ```User``` class that may be already defined in your application.
45+
Whether you use Play Framework or not, you have to implement `DataHandler` trait and make it work with your own `User` class that may be already defined in your application.
4646

4747
```scala
4848
case class User(id: Long, name: String, hashedPassword: String)
@@ -72,14 +72,14 @@ class MyDataHandler extends DataHandler[User] {
7272
}
7373
```
7474

75-
If your data access is blocking for the data storage, then you just wrap your implementation in the ```DataHandler``` trait with ```Future.successful(...)```.
75+
If your data access is blocking for the data storage, then you just wrap your implementation in the `DataHandler` trait with `Future.successful(...)`.
7676

77-
For more details, refer to Scaladoc of ```DataHandler```.
77+
For more details, refer to Scaladoc of `DataHandler`.
7878

7979
### AuthInfo
8080

81-
```DataHandler``` returns ```AuthInfo``` as authorized information.
82-
```AuthInfo``` is made up of the following fields.
81+
`DataHandler` returns `AuthInfo` as authorized information.
82+
`AuthInfo` is made up of the following fields.
8383

8484
```scala
8585
case class AuthInfo[User](
@@ -93,11 +93,11 @@ case class AuthInfo[User](
9393
```
9494

9595
- user
96-
- ```user``` is authorized by DataHandler
96+
- `user` is authorized by DataHandler
9797
- clientId
98-
- ```clientId``` which is sent from a client has been verified by ```DataHandler```
99-
- If your application requires client_id for client authentication, you can get ```clientId``` as below
100-
- ```val clientId = authInfo.clientId.getOrElse(throw new InvalidClient())```
98+
- `clientId` which is sent from a client has been verified by `DataHandler`
99+
- If your application requires client_id for client authentication, you can get `clientId` as below
100+
- `val clientId = authInfo.clientId.getOrElse(throw new InvalidClient())`
101101
- scope
102102
- inform the client of the scope of the access token issued
103103
- redirectUri

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ lazy val root = (project in file("."))
6969
scalaOAuth2ProviderSettings,
7070
name := "scala-oauth2-core",
7171
description := "OAuth 2.0 server-side implementation written in Scala",
72-
version := "1.5.1-SNAPSHOT",
72+
version := "1.6.0",
7373
libraryDependencies ++= commonDependenciesInTestScope
7474
)

0 commit comments

Comments
 (0)