Skip to content

Commit f145835

Browse files
committed
also clean up jwt token setup
1 parent 20cf37e commit f145835

11 files changed

Lines changed: 4732 additions & 4739 deletions

File tree

auth_service.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ debug(`Accepting api version ${apiVersion}`);
6161
/**
6262
* Middleware
6363
*/
64-
// The example attaches it to the express
65-
// https://github.com/oauthjs/express-oauth-server#quick-start
66-
// service.oauth = oauthMiddleware;
67-
// authWebService.use(authenticationMiddleware.jwt);
6864

6965
authWebService.use(favicon(path.join(__dirname, '/public/favicon.ico')));
7066
authWebService.use(bunyan({

config/jwt_debug.pem

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/jwt_debug.pem.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

config/jwt_debug.pub.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

lib/About.js

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,6 @@ module.exports.FieldDB = function FieldDB() {
1313
resourcePath: '/users',
1414
produces: ['application/json', 'application/xml', 'text/plain', 'text/html', 'application/x-latex', 'application/tar', 'application/zip', 'application/pdf', 'text/srt', 'text/websrt', 'text/x-textgrid', 'text/csv'],
1515
apis: [],
16-
authorizations: {
17-
oauth2: {
18-
type: 'oauth2',
19-
scopes: ['PUBLIC'],
20-
grantTypes: {
21-
implicit: {
22-
loginEndpoint: {
23-
url: 'http://localhost:8002/oauth/dialog'
24-
},
25-
tokenName: 'access_code'
26-
},
27-
authorization_code: {
28-
tokenRequestEndpoint: {
29-
url: 'http://localhost:8002/oauth/requestToken',
30-
clientIdName: 'client_id',
31-
clientSecretName: 'client_secret'
32-
},
33-
tokenEndpoint: {
34-
url: 'http://localhost:8002/oauth/token',
35-
tokenName: 'access_code'
36-
}
37-
}
38-
}
39-
},
40-
apiKey: {
41-
type: 'apiKey',
42-
keyName: 'api_key',
43-
passAs: 'header'
44-
},
45-
basicAuth: {
46-
type: 'basicAuth'
47-
}
48-
},
4916
models: {
5017
User: {
5118
username: 'User',

lib/token.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)