Added analytics and WebFinger support along with little things
This commit is contained in:
parent
73d92fe840
commit
ba3978fffb
9 changed files with 2794 additions and 15 deletions
|
|
@ -2,6 +2,8 @@ import path from 'path';
|
|||
import express from 'express';
|
||||
import mime from 'mime';
|
||||
|
||||
import { PointerServer } from '@BridgemanAccessible/ba-auth';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
|
|
@ -76,6 +78,10 @@ app.use(express.static(path.join(__dirname, 'public'), {
|
|||
}
|
||||
}));
|
||||
|
||||
const oidcLink = PointerServer.createOIDCLink('account.bridgemanaccessible.ca');
|
||||
const rfc8414Link = PointerServer.createRFC8414Link('account.bridgemanaccessible.ca');
|
||||
PointerServer.setup(app, { links: [oidcLink, rfc8414Link] });
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.listen(port, () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue