File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
play2-oauth2-provider/src/main/scala/scalaoauth2/provider Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ trait OAuth2Provider extends OAuth2BaseProvider {
110
110
* @return Request is successful then return JSON to client in OAuth 2.0 format.
111
111
* Request is failed then return BadRequest or Unauthorized status to client with cause into the JSON.
112
112
*/
113
- def issueAccessToken [A , U ](dataHandler : DataHandler [U ])(implicit request : play.api.mvc.Request [A ]): Result = {
113
+ def issueAccessToken [A , U ](dataHandler : DataHandler [U ])(implicit request : play.api.mvc.Request [A ]): SimpleResult = {
114
114
TokenEndpoint .handleRequest(request, dataHandler) match {
115
115
case Left (e) if e.statusCode == 400 => BadRequest (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e))
116
116
case Left (e) if e.statusCode == 401 => Unauthorized (responseOAuthErrorJson(e)).withHeaders(responseOAuthErrorHeader(e))
@@ -128,7 +128,7 @@ trait OAuth2Provider extends OAuth2BaseProvider {
128
128
* @return Authentication is successful then the response use your API result.
129
129
* Authentication is failed then return BadRequest or Unauthorized status to client with cause into the JSON.
130
130
*/
131
- def authorize [A , U ](dataHandler : DataHandler [U ])(callback : AuthInfo [U ] => Result )(implicit request : play.api.mvc.Request [A ]): Result = {
131
+ def authorize [A , U ](dataHandler : DataHandler [U ])(callback : AuthInfo [U ] => SimpleResult )(implicit request : play.api.mvc.Request [A ]): SimpleResult = {
132
132
ProtectedResource .handleRequest(request, dataHandler) match {
133
133
case Left (e) if e.statusCode == 400 => BadRequest .withHeaders(responseOAuthErrorHeader(e))
134
134
case Left (e) if e.statusCode == 401 => Unauthorized .withHeaders(responseOAuthErrorHeader(e))
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import Keys._
4
4
object ScalaOAuth2Build extends Build {
5
5
6
6
lazy val _organization = " com.nulab-inc"
7
- lazy val _version = " 0.8.0 "
8
- lazy val _playVersion = " 2.3.2 "
7
+ lazy val _version = " 0.7.3 "
8
+ lazy val _playVersion = " 2.2.4 "
9
9
10
10
val _scalaVersion = " 2.10.4"
11
- val _crossScalaVersions = Seq (" 2.10.4" , " 2.11.1 " )
11
+ val _crossScalaVersions = Seq (" 2.10.4" )
12
12
13
13
val commonDependenciesInTestScope = Seq (
14
14
" org.scalatest" %% " scalatest" % " 2.2.0" % " test"
You can’t perform that action at this time.
0 commit comments