From c306b43da7efea2faf6a48d0dd2dac4dfa9fc35c Mon Sep 17 00:00:00 2001 From: Ojas Arora <127867874+Ojas-Arora@users.noreply.github.com> Date: Sun, 28 Jul 2024 18:00:56 +0530 Subject: [PATCH] Adding Microsoft Authentication --- log/login.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/log/login.html b/log/login.html index 201ce319..5b12a210 100644 --- a/log/login.html +++ b/log/login.html @@ -60,6 +60,9 @@

RAPIDOC

+
+ +
@@ -68,6 +71,7 @@

RAPIDOC

+
@@ -99,6 +103,9 @@

RAPIDOC

+
+ +
@@ -107,6 +114,8 @@

RAPIDOC

+ +
@@ -204,6 +213,20 @@

Hello, Friend!

console.error(error); }); } +// Initialize OAuth.io +OAuth.initialize('your_oauth_io_public_key'); // Replace with your OAuth.io public key + +// Handle Microsoft Sign In +function handleMicrosoftSignIn() { + OAuth.popup('microsoft').then(microsoft => { + console.log('Microsoft token:', microsoft.access_token); + microsoft.me().then(data => { + console.log('Microsoft user data:', data); + }); + }).catch(error => { + console.error(error); + }); +} document.querySelectorAll('.toggle-password').forEach(item => {