File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed
play2-oauth2-provider/src/main/scala/scalaoauth2/provider Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -128,17 +128,6 @@ object OAuth2Controller extends Controller with OAuth2Provider {
128
128
}
129
129
```
130
130
131
- NOTE: If your controller supports returning synchronous result, use ``` await ``` method which is package object of scalaoauth2.provider.
132
-
133
- ``` scala
134
- import scalaoauth2 .provider ._
135
- object OAuth2Controller extends Controller with OAuth2Provider {
136
- def accessToken = Action { implicit request =>
137
- await(issueAccessToken(new MyDataHandler ()))
138
- }
139
- }
140
- ```
141
-
142
131
Then, assign a route to the controller that OAuth clients will access to.
143
132
144
133
```
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ package object provider {
42
42
* @param timeout maximum wait time
43
43
* @return Await and return the result.
44
44
*/
45
+ @ deprecated(" Use Await in your own" , " 0.13.0" )
45
46
def await (f : Future [Result ], timeout : Duration = 60 .seconds): Result = Await .result(f, timeout)
46
47
47
48
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import Keys._
4
4
object ScalaOAuth2Build extends Build {
5
5
6
6
lazy val _organization = " com.nulab-inc"
7
- lazy val _version = " 0.13.0 "
7
+ lazy val _version = " 0.13.1-SNAPSHOT "
8
8
lazy val _playVersion = " 2.3.7"
9
9
10
10
val _scalaVersion = " 2.10.5"
You can’t perform that action at this time.
0 commit comments