Skip to content

Commit

Permalink
ms sql windows auth fails because it sees the process owner
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliohome committed Nov 14, 2021
1 parent 5b7ddd2 commit ebf8d10
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions back/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const isAuthorized = (username:string) => true;

const DBLayer = require('f://Apps/node/sqliteapp/connect');

app.use('/mysso/ws/protected/secret', (req, res) => {
app.use('/mysso/ws/protected/secret', async (req, res) => {
const username = getUserName(req);
const accessToken = getAccessToken(req);

Expand Down Expand Up @@ -151,11 +151,15 @@ app.use('/mysso/ws/protected/secret', (req, res) => {
console.log('return json');
return res.json(ret);
}
const db = DBLayer.sqlite_connect(callback);
// sqlite test
// const db = DBLayer.sqlite_connect(callback);
// TEST 2 sqlite connection: 'SQLITE_CANTOPEN: unable to open database file'
// ms sql test
const db = await DBLayer.mssql_connect(callback);
} else {
res.json({hello: username, authorized: false});
}
//TEST 3 ms sql windows auth fails: [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'domain\\owner'."
});

app.use('/mysso/ws/myhost',(req, res) => {
Expand Down

0 comments on commit ebf8d10

Please sign in to comment.