You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,15 @@ In this case, you need to implement your own OAuth provider working with web fra
34
34
35
35
```scala
36
36
libraryDependencies ++=Seq(
37
-
"com.nulab-inc"%%"scala-oauth2-core"%"1.5.0"
37
+
"com.nulab-inc"%%"scala-oauth2-core"%"1.6.0"
38
38
)
39
39
```
40
40
41
41
## How to use
42
42
43
43
### Implement DataHandler
44
44
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.
@@ -72,14 +72,14 @@ class MyDataHandler extends DataHandler[User] {
72
72
}
73
73
```
74
74
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(...)`.
76
76
77
-
For more details, refer to Scaladoc of ```DataHandler```.
77
+
For more details, refer to Scaladoc of `DataHandler`.
78
78
79
79
### AuthInfo
80
80
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.
83
83
84
84
```scala
85
85
caseclassAuthInfo[User](
@@ -93,11 +93,11 @@ case class AuthInfo[User](
93
93
```
94
94
95
95
- user
96
-
-```user``` is authorized by DataHandler
96
+
-`user` is authorized by DataHandler
97
97
- 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())`
101
101
- scope
102
102
- inform the client of the scope of the access token issued
0 commit comments