diff --git a/src/oauthproxy.js b/src/oauthproxy.js index 9e3d681c0..bd735f10c 100644 --- a/src/oauthproxy.js +++ b/src/oauthproxy.js @@ -126,7 +126,7 @@ function authenticate(req, res, next) { clientdb.getByAppIdAndType(result.id, clientdb.TYPE_PROXY, function (error, result) { if (error) { - console.error('Unkonwn OAuth client.', error); + console.error('Unknown OAuth client.', error); return res.send(500, 'Unknown OAuth client.'); } diff --git a/src/routes/oauth2.js b/src/routes/oauth2.js index 30226b29a..e1334db68 100644 --- a/src/routes/oauth2.js +++ b/src/routes/oauth2.js @@ -375,7 +375,7 @@ var authorization = [ if (type === clientdb.TYPE_ADMIN) return next(); if (type === clientdb.TYPE_EXTERNAL) return next(); - if (type === clientdb.TYPE_SIMPLE_AUTH) return sendError(req, res, 'Unkonwn OAuth client.'); + if (type === clientdb.TYPE_SIMPLE_AUTH) return sendError(req, res, 'Unknown OAuth client.'); appdb.get(req.oauth2.client.appId, function (error, appObject) { if (error) return sendErrorPageOrRedirect(req, res, 'Invalid request. Unknown app for this client_id.'); diff --git a/src/routes/test/oauth2-test.js b/src/routes/test/oauth2-test.js index 178d6b9ec..6adb1cdc9 100644 --- a/src/routes/test/oauth2-test.js +++ b/src/routes/test/oauth2-test.js @@ -799,7 +799,7 @@ describe('OAuth2', function () { expect(error).to.not.be.ok(); expect(response.statusCode).to.eql(200); expect(body.indexOf('')).to.not.equal(-1); - expect(body.indexOf('Unkonwn OAuth client.')).to.not.equal(-1); + expect(body.indexOf('Unknown OAuth client.')).to.not.equal(-1); done(); }); @@ -862,7 +862,7 @@ describe('OAuth2', function () { expect(error).to.not.be.ok(); expect(response.statusCode).to.eql(200); expect(body.indexOf('')).to.not.equal(-1); - expect(body.indexOf('Unkonwn OAuth client.')).to.not.equal(-1); + expect(body.indexOf('Unknown OAuth client.')).to.not.equal(-1); done(); });