+
Connexion
+ {/* Formulaire de connexion simple */}
+
+
+
+ {/* Conteneur OAuth */}
+
+
Se connecter avec OAuth
+ {authData && Object.keys(authData).map((providerKey) => {
+ const provider = authData[providerKey];
+ if (provider.type === 'oauth') {
+ return (
+
+ );
+ }
+ return null;
+ })}
+
+ {/* Conteneur OIDC */}
+
+
Se connecter avec OIDC
+ {authData && Object.keys(authData).map((providerKey) => {
+ const provider = authData[providerKey];
+ if (provider.type === 'oidc') {
+ return (
+
+ );
+ }
+ return null;
+ })}
+
+
+
+
+
+ );
+};
+export default AuthSelection;
\ No newline at end of file
diff --git a/client/src/pages/AuthSelection/authselection.css b/client/src/pages/AuthSelection/authselection.css
new file mode 100644
index 0000000..f1da0c3
--- /dev/null
+++ b/client/src/pages/AuthSelection/authselection.css
@@ -0,0 +1,63 @@
+.auth-selection-page {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ padding: 20px;
+ }
+ h1 {
+ margin-bottom: 20px;
+ }
+ .form-container,
+ .oauth-container,
+ .oidc-container {
+ border: 1px solid #ccc;
+ border-radius: 8px;
+ padding: 15px;
+ margin: 10px 0;
+ width: 400px;
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
+ text-align: center;
+ }
+ form {
+ display: flex;
+ flex-direction: column;
+ }
+ input {
+ margin: 5px 0;
+ padding: 10px;
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ }
+ button {
+ padding: 10px;
+ border: none;
+ border-radius: 4px;
+ background-color: #5271ff;
+ color: white;
+ cursor: pointer;
+ }
+ button:hover {
+ background-color: #5271ff;
+ }
+ .home-button-container{
+ background: none;
+ color: black;
+ }
+ .home-button-container:hover{
+ background: none;
+ color: black;
+ text-decoration: underline;
+ }
+ .provider-btn {
+ background-color: #ffffff;
+ border: 1px solid #ccc;
+ color: black;
+ margin: 4px 0 4px 0;
+ }
+ .provider-btn:hover {
+ background-color: #dbdbdb;
+ border: 1px solid #ccc;
+ color: black;
+ margin: 4px 0 4px 0;
+ }
+
\ No newline at end of file
diff --git a/client/src/pages/Home/Home.tsx b/client/src/pages/Home/Home.tsx
index b2abf1f..bc0cfc9 100644
--- a/client/src/pages/Home/Home.tsx
+++ b/client/src/pages/Home/Home.tsx
@@ -6,6 +6,13 @@ import { Link } from 'react-router-dom';
const Home: React.FC = () => {
return (
+
+
+
+
+
+
+
diff --git a/client/src/pages/Home/home.css b/client/src/pages/Home/home.css
index 1fc8a8d..8a6a1a7 100644
--- a/client/src/pages/Home/home.css
+++ b/client/src/pages/Home/home.css
@@ -61,6 +61,25 @@
align-items: end;
}
+.auth-selection-btn {
+ position: absolute;
+ top: 20px;
+ right: 20px;
+}
+.auth-btn {
+ padding: 10px 20px;
+ background-color: #5271ff;
+ color: white;
+ border: none;
+ border-radius: 5px;
+ cursor: pointer;
+ font-size: 14px;
+ transition: background-color 0.3s ease;
+}
+.auth-btn:hover {
+ background-color: #5976fa;
+}
+
@media only screen and (max-width: 768px) {
.btn-container {
flex-direction: column;