]> source.dussan.org Git - nextcloud-server.git/commitdiff
It's a bearer
authorLukas Reschke <lukas@statuscode.ch>
Thu, 4 May 2017 22:19:28 +0000 (00:19 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 18 May 2017 18:49:05 +0000 (20:49 +0200)
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
apps/oauth2/lib/Controller/OauthApiController.php

index 8432830bce3dcfe885532a19420386b8b35f048a..97f8185149a6878e4e8348dca139a1f70fbdab17 100644 (file)
@@ -78,7 +78,7 @@ class OauthApiController extends Controller {
                return new JSONResponse(
                        [
                                'access_token' => $decryptedToken,
-                               'token_type' => 'token',
+                               'token_type' => 'Bearer',
                                'expires_in' => 3600,
                                'refresh_token' => $newCode,
                                'user_id' => ($this->defaultTokenMapper->getTokenById($accessToken->getTokenId()))->getUID(),