A common use case for web applications is displaying authenticated user’s profile data. In this article, I will show you how to create a React client application backed by an Express or AEM server and consume user profile data from the server in each of the two configurations.
First let’s create a client application using Create React App:
npx create-react-app client
Assuming that user data from the server are available through the window object, creating Context provider makes it possible to initialise the app with user data and then use them throughout the application.
// client/AppContext.jsimport React, { createContext…
This article shows how to easily integrate your AEM component with Sharepoint and retrieve all files from specified library using Microsoft Graph API.
http://localhost:4502/content/example/ms-graph-callback.html
added as the redirect URI [1]aem-project-archetype
[2])https://{hostname}/{site}
)First we need to create new AEM component that will display files from Sharepoint. Let’s add a simple html with a placeholder for the actual files and a corresponding js that will handle all the logic. …
Technical Architect @ Adobe