Share via


Implement Authentication

To connect your application to Viva Engage, you must implement an authentication mechanism.

The legacy Viva Engage (Yammer) platform uses the OAuth 2.0 protocol, which begins with the user authenticating with their Viva Engage credentials and authorizing your application to access their Viva Engage network.

Upon successful authorization, your application receives an access token, which is used to read and write data to the Viva Engage network.

Azure Active Directory Tokens

All Yammer v1 REST API endpoints support authentication using Entra (formerly Azure Active Directory) tokens. These tokens can be acquired using the Microsoft Authentication Library (MSAL), which is available for .NET, JavaScript, iOS, and Android. MSAL supports a variety of application architectures and platforms.

For more information, see the MSAL documentation.

Client-side Single Page JavaScript Applications

If you are building a single-page application (SPA) that uses the Implicit Grant Flow with Azure Active Directory, your Entra application must be mapped to its corresponding Yammer Platform Application. This mapping is required to prevent Cross-Origin Resource Sharing (CORS) permission issues.

To request mapping of your Entra application and Yammer application, please create a Microsoft Support case and provide the relevant application IDs