Skip to content

An example HTML page that includes all the basic msal-browser example code in a single inline module, fit for embedding in some other context

Notifications You must be signed in to change notification settings

ajzeigert/msal-browser-example-single-html-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

msal-browser example in a single html file

This repository is essentially a clone of this example from the main Microsoft Authentication Library for JS repository.

The difference is that all of the javascript has been moved to a single inline module script tag. I created this because there have been occasions where I've wanted to embed small Graph apps into a larger CMS, and referencing external file includes in that context can be a pain. You should be able to paste this HTML into any CMS that allows it and it should function as expected, assuming the CMS doesn't strip out script and link tags.

So, this exists now, mostly for my own use. It's stripped down to the bone. In fact, it doesn't even had a head tag, everything is contained in body.

One major note is that you will need to update clientId and authority in the msalConfig object with ones created in a new Application in Azure EntraID.

About

An example HTML page that includes all the basic msal-browser example code in a single inline module, fit for embedding in some other context

Topics

Resources

Stars

Watchers

Forks

Languages