mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
10 lines
344 B
JavaScript
10 lines
344 B
JavaScript
/*
|
|
* This is just client script to test the fake API.
|
|
*/
|
|
|
|
const DuoApi = require("@duosecurity/duo_api");
|
|
|
|
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
|
|
|
|
const client = new DuoApi.Client("ABCDEFG", "SECRET", "duo.example.com");
|
|
client.jsonApiCall("POST", "/auth/v2/auth", { username: 'john', factor: "push", device: "auto" }, console.log); |