-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjumpcloud_sso.html
More file actions
30 lines (30 loc) · 881 Bytes
/
Copy pathjumpcloud_sso.html
File metadata and controls
30 lines (30 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script src="https://www.gstatic.com/firebasejs/8.0/firebase.js"></script>
<script>
async function initSSO() {
var config = {
apiKey: "AIzaSyCnwcg9Y5WvGFglqDNseYwGJUMOL8SMpMg",
authDomain: "jumpcloud-poc.firebaseapp.com",
};
await firebase.initializeApp(config);
const provider = new firebase.auth.SAMLAuthProvider('saml.jumpcloud-demo');
console.log(provider);
try {
const loginResponse = await firebase.auth().signInWithPopup(provider);
console.log(loginResponse);
} catch (e) {
console.error(e);
}
}
initSSO();
</script>
</body>
</html>