Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ config/production.*
config/local.*
etc
Dockerfile-couchdb
db

# Ignore natural lib
public/libs/natural/
Expand Down
11 changes: 0 additions & 11 deletions auth_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const favicon = require('serve-favicon');
const path = require('path');

/* Load modules provided by this codebase */
const authenticationMiddleware = require('./middleware/authentication');
const authWebServiceRoutes = require('./routes/routes');
const { errorHandler } = require('./middleware/error-handler');
const deprecatedRoutes = require('./routes/deprecated');
Expand Down Expand Up @@ -62,10 +61,6 @@ debug(`Accepting api version ${apiVersion}`);
/**
* Middleware
*/
// The example attaches it to the express
// https://github.com/oauthjs/express-oauth-server#quick-start
// service.oauth = oauthMiddleware;
authWebService.use(authenticationMiddleware.jwt);

authWebService.use(favicon(path.join(__dirname, '/public/favicon.ico')));
authWebService.use(bunyan({
Expand Down Expand Up @@ -105,12 +100,6 @@ authWebService.options('*', (req, res) => {
}
});

authWebService.use('/bower_components', express.static(path.join(__dirname,
'/public/components/as-ui-auth/bower_components')));
authWebService.use('/authentication', authenticationMiddleware.redirectAuthenticatedUser, express.static(path.join(__dirname, '/public/components/as-ui-auth/components')));
authWebService.use('/authentication/register', authenticationMiddleware.redirectAuthenticatedUser,
express.static(path.join(__dirname, '/public/components/as-ui-auth/components/signup')));

/**
* Set up all the available URL authWebServiceRoutes see routes/routes.js for more details
*/
Expand Down
13 changes: 0 additions & 13 deletions bower.json

This file was deleted.

15 changes: 0 additions & 15 deletions config/jwt_debug.pem

This file was deleted.

15 changes: 0 additions & 15 deletions config/jwt_debug.pem.js

This file was deleted.

6 changes: 0 additions & 6 deletions config/jwt_debug.pub.js

This file was deleted.

4 changes: 0 additions & 4 deletions db/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions lib/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,6 @@ module.exports.FieldDB = function FieldDB() {
resourcePath: '/users',
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'],
apis: [],
authorizations: {
oauth2: {
type: 'oauth2',
scopes: ['PUBLIC'],
grantTypes: {
implicit: {
loginEndpoint: {
url: 'http://localhost:8002/oauth/dialog'
},
tokenName: 'access_code'
},
authorization_code: {
tokenRequestEndpoint: {
url: 'http://localhost:8002/oauth/requestToken',
clientIdName: 'client_id',
clientSecretName: 'client_secret'
},
tokenEndpoint: {
url: 'http://localhost:8002/oauth/token',
tokenName: 'access_code'
}
}
}
},
apiKey: {
type: 'apiKey',
keyName: 'api_key',
passAs: 'header'
},
basicAuth: {
type: 'basicAuth'
}
},
models: {
User: {
username: 'User',
Expand Down
56 changes: 0 additions & 56 deletions lib/token.js

This file was deleted.

122 changes: 0 additions & 122 deletions middleware/authentication.js

This file was deleted.

22 changes: 0 additions & 22 deletions middleware/oauth.js

This file was deleted.

Loading