1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+
4+ < head >
5+ < meta charset ="UTF-8 ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0, shrink-to-fit=no ">
7+ < title > Microsoft identity platform</ title >
8+ < link rel ="SHORTCUT ICON " href ="./favicon.svg " type ="image/x-icon ">
9+
10+ <!-- msal.min.js can be used in the place of msal.js; included msal.js to make debug easy -->
11+ < script src ="https://alcdn.msauth.net/browser/2.13.1/js/msal-browser.js "
12+ integrity ="sha384-7hwr87O1w6buPsX92CwuRaz/wQzachgOEq+iLHv0ESavynv6rbYwKImSl7wUW3wV "
13+ crossorigin ="anonymous "> </ script >
14+
15+ <!-- To help ensure reliability, Microsoft provides a second CDN -->
16+ < script type ="text/javascript ">
17+ if ( typeof Msal === 'undefined' ) document . write ( unescape ( "%3Cscript src='https://alcdn.msftauth.net/browser/2.13.1/js/msal-browser.js' type='text/javascript' crossorigin='anonymous' %3E%3C/script%3E" ) ) ;
18+ </ script >
19+
20+ <!-- import Graph SDK for JavaScript -->
21+ < script type ="text/javascript "
22+ src ="https://cdn.jsdelivr.net/npm/@microsoft/microsoft-graph-client/lib/graph-js-sdk.js "> </ script >
23+
24+ <!-- adding Bootstrap 4 for UI components -->
25+ < link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css "
26+ integrity ="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh " crossorigin ="anonymous ">
27+ < link rel ="SHORTCUT ICON " href ="https://c.s-microsoft.com/favicon.ico?v2 " type ="image/x-icon ">
28+ </ head >
29+
30+ < body >
31+ < nav class ="navbar navbar-expand-lg navbar-dark bg-primary ">
32+ < a class ="navbar-brand " href ="/ "> Microsoft identity platform</ a >
33+ < div class ="btn-group ml-auto dropleft ">
34+ < button type ="button " id ="signIn " class ="btn btn-secondary " onclick ="signIn() ">
35+ Sign in
36+ </ button >
37+ </ div >
38+ </ nav >
39+ < br >
40+ < h5 class ="card-header text-center "> Vanilla JavaScript SPA calling MS Graph API with MSAL.js</ h5 >
41+ < br >
42+ < div class ="row " style ="margin:auto ">
43+ < div id ="card-div " class ="col-md-3 " style ="display:none ">
44+ < div class ="card text-center ">
45+ < div class ="card-body ">
46+ < h5 class ="card-title " id ="WelcomeMessage "> Please sign-in to manage your users</ h5 >
47+ < div id ="profile-div "> </ div >
48+ < br >
49+ < br >
50+ < button class ="btn btn-primary " id ="getUsers "> Get Users</ button >
51+ < button class ="btn btn-primary " id ="addUsers "> Add Users</ button >
52+ </ div >
53+ </ div >
54+ </ div >
55+ < br >
56+ < br >
57+ < div class ="list-group col-md-4 " id ="list-tab " role ="tablist ">
58+ </ div >
59+ < div class ="tab-content col-md-5 " id ="nav-tabContent ">
60+ </ div >
61+ < div class ="col-md-6 " id ="form-div " style ="display:none ">
62+ < div class ="form-group ">
63+ < input class ="form-control " id ="displayName " placeholder ="Display Name ">
64+ < input class ="form-control " id ="userPrincipalName " placeholder ="User Principal Name ">
65+ < input class ="form-control " id ="password " placeholder ="Password ">
66+ </ div >
67+ < button type ="submit " class ="btn btn-primary " id ="submitButton "> Submit</ button >
68+ </ div >
69+ < br >
70+ < br >
71+
72+ < p id ="survey " style ="display:none; position: fixed; left: 0; bottom: 0; width: 100%; text-align: center; "> How did
73+ we do?
74+ < a href ="https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR73pcsbpbxNJuZCMKN0lURpUOUlINE03TVo4TEM4MVRGUUQ2TlBRUUFBSCQlQCN0PWcu "
75+ target ="_blank "> Share your experience with us!</ a >
76+ </ p >
77+
78+ <!-- importing bootstrap.js and supporting js libraries -->
79+ < script src ="https://code.jquery.com/jquery-3.4.1.slim.min.js "
80+ integrity ="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n "
81+ crossorigin ="anonymous "> </ script >
82+ < script src ="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js "
83+ integrity ="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo "
84+ crossorigin ="anonymous "> </ script >
85+ < script src ="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js "
86+ integrity ="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6 "
87+ crossorigin ="anonymous "> </ script >
88+
89+ <!-- importing app scripts (load order is important) -->
90+ < script type ="text/javascript " src ="./authConfig.js "> </ script >
91+ < script type ="text/javascript " src ="./ui.js "> </ script >
92+ < script type ="text/javascript " src ="./authProvider.js "> </ script >
93+ < script type ="text/javascript " src ="./graph.js "> </ script >
94+ </ body >
95+
96+ </ html >
0 commit comments