This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| void setup() { | |
| Serial.begin(9600); | |
| Wire.begin(); | |
| Serial.println("Reading"); | |
| } | |
| int reading = 0; | |
| void loop() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as request from "request-promise-native" | |
| import { ntlm } from "httpntlm" | |
| import { HttpsAgent } from "agentkeepalive" | |
| async function go(username, password) { | |
| const cookies = request.jar() | |
| const adfsSignOnUri = ADFS_INIT_SIGNON_URL | |
| const adfsRedirectUri = ADFS_REDIRECTING_URL | |
| const adfsLoginResponse = await request.post( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Kerberos } from 'kerberos' | |
| const kerberos = new Kerberos() | |
| const kerberosToken = await new Promise((resolve, reject)=>{ | |
| kerberos.authGSSClientInit("krbtgt@*******", 0, function(err, ctx) { | |
| if (err) { | |
| return reject(err) | |
| } | |
| kerberos.authGSSClientStep(ctx, "", function (err) { |