Implementing basic auth_grant

This commit is contained in:
Fabian Stamm
2020-03-17 16:27:57 +01:00
parent 92cc97c396
commit 44d02b0110
12 changed files with 304 additions and 100 deletions

View File

@ -71,8 +71,11 @@ export default async function TestData() {
name: "TestPerm",
description: "Permission just for testing purposes",
client: c._id
})
Permission.save(perm);
});
await (await (Permission as any)._collection).insertOne(perm);
// Permission.save(perm);
}
let r = await RegCode.findOne({ token: "test" });
@ -138,4 +141,4 @@ export default async function TestData() {
// })
// Logging.debug("OTC Code is:", code);
// }, 1000)
}
}