1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

fido app id

This commit is contained in:
Kyle Spearrin
2017-06-27 12:26:53 -04:00
parent 9f1c445214
commit 9b3ca76934
5 changed files with 29 additions and 5 deletions

View File

@@ -325,7 +325,8 @@ gulp.task('dist:move', function () {
paths.webroot + '**/images/**/*',
paths.webroot + 'index.html',
paths.webroot + 'u2f-connector.html',
paths.webroot + 'favicon.ico'
paths.webroot + 'favicon.ico',
paths.webroot + 'app-id.fidou2f'
],
dest: paths.dist
}
@@ -440,6 +441,14 @@ gulp.task('deploy-preview', ['dist'], function () {
gulp.task('serve', function () {
connect.server({
port: 4001,
root: ['src']
root: ['src'],
middleware: function (connect, opt) {
return [function (req, res, next) {
if (req.originalUrl.indexOf('app-id.fidou2f') > -1) {
res.setHeader('Content-Type', 'application/fido.trusted-apps+json');
}
next();
}];
}
});
});