Created fresh deno project

This commit is contained in:
Kevin FEDYNA
2024-12-02 14:36:52 +01:00
parent b3fbe6b6c8
commit 9a97591bda
20 changed files with 379 additions and 4 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ async function main() {
const execution = initHTML.match(/(?<=name="execution" value=").*?(?=")/)[0];
const data = new URLSearchParams();
data.append("username", process.env.CAS_USERNAME);
data.append("password", process.env.CAS_PASSWORD);
data.append("username", Deno.env.get("CAS_USERNAME"));
data.append("password", Deno.env.get("CAS_PASSWORD"));
data.append("_eventId", "submit");
data.append("execution", execution);
+1 -1
View File
@@ -1,4 +1,4 @@
const token = process.env.CAS_TOKEN;
const token = Deno.env.get("CAS_TOKEN");
async function main() {
const response = await fetch("https://ident.univ-amu.fr/login?service=http://localhost", {