From 449de7e517eaf7735c5bcf7af9c87cb66907cd87 Mon Sep 17 00:00:00 2001
From: steel <mael.acier@ensiie.fr>
Date: Sat, 18 Jan 2025 01:18:07 +0100
Subject: [PATCH] add composer.json and index.php for AriseID Connect demo;
 update .gitignore to include vendor directory

---
 .gitignore                   |  2 ++
 composer.json                | 10 ++++++++++
 web/index.php                | 16 ++++++++++++++++
 oauth2.php => web/oauth2.php |  0
 oidc.php => web/oidc.php     |  0
 5 files changed, 28 insertions(+)
 create mode 100644 composer.json
 create mode 100644 web/index.php
 rename oauth2.php => web/oauth2.php (100%)
 rename oidc.php => web/oidc.php (100%)

diff --git a/.gitignore b/.gitignore
index 722d5e7..690c0eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
 .vscode
+
+/vendor/
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..761f929
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,10 @@
+{
+    "name": "aidc/php-demo",
+    "type": "project",
+    "authors": [
+        {
+            "name": "steel"
+        }
+    ],
+    "require": {}
+}
diff --git a/web/index.php b/web/index.php
new file mode 100644
index 0000000..d93966b
--- /dev/null
+++ b/web/index.php
@@ -0,0 +1,16 @@
+<html lang="fr">
+
+<head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="color-scheme" content="light dark">
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css">
+    <title>PHP Demo</title>
+</head>
+
+<body>
+    <main>
+        <button><a href="oauth2.php">Version OAuth 2</a></button>
+        <button><a href="oidc.php">Version OpenID Connect</a></button>
+    </main>
+</body>
\ No newline at end of file
diff --git a/oauth2.php b/web/oauth2.php
similarity index 100%
rename from oauth2.php
rename to web/oauth2.php
diff --git a/oidc.php b/web/oidc.php
similarity index 100%
rename from oidc.php
rename to web/oidc.php
-- 
GitLab