Skip to content

Instantly share code, notes, and snippets.

@HannanSaleemi
HannanSaleemi / AdalAuthentication.jsx
Created April 3, 2019 10:23 — forked from hampusborgos/AdalAuthentication.jsx
An example using adal.js with React.
// Set up the ADAL instance, we will use the throughout the app
export var adalInstance = new AuthenticationContext({
instance: 'https://login.microsoftonline.com/',
// The client ID of the app from the Azure Portal
clientId: 'aabbccee-aabb-1122-3344-556677889900',
// Where do we want to go after logging out
postLogoutRedirectUri: window.location.origin,