You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
I think it is still useful to have at least these samples for those projects who stuck with old Spring and can't upgrade. Although please consider writing new version using latest versions за Spring Boot and Spring Security available at Spring Initalizr https://start.spring.io/.
One of the new concepts for Web API you can implement is Resource Server where web API exists without any UI therefore there is no standard services to obtain token. In most cases the access token comes from the front-end layer and web api just revalidates it. Once it is done the next step would be to call Microsoft Graph API to get various data from the organization account, for example: get list of files in the Sharepoint folder or on OneDrive, get list of email messages, send notification, schedule a meeting in Calendar, view list of existing events in Calendar. I agree with other comments: do not use low-level HTTP to implement the client but use built-in com.azure.resourcemanager.authorization.fluent.MicrosoftGraphClient or com.microsoft.graph.requests.GraphServiceClient.