User Guide
User Guide
NET
User Guide
Contents
Introduction ................................................................................................................................................................ 2
Prerequisites .............................................................................................................................................................. 3
App Registration .................................................................................................................................................... 3
Configuration ............................................................................................................................................................. 6
Using the Asset ......................................................................................................................................................... 7
Get Auth Token - Client Secret ........................................................................................................................... 7
Get Auth Token - Certificate ................................................................................................................................ 7
Get Auth Token - Integrated Windows Auth ..................................................................................................... 8
Get Auth Token - Username and Password ..................................................................................................... 8
Support ....................................................................................................................................................................... 9
Introduction
The Microsoft Authentication Library (MSAL) for .NET is part of the Microsoft Identity Platform for developers
(formerly named Azure AD). It enables the acquisition of security tokens for use in calling protected APIs. It uses
industry standard OAuth2 and OpenID Connect features.
The MSAL.NET VBO is a Blue Prism implementation of this library with support for the following
authentication/authorization types:
• Client Secret
• Client X.509 Certificate
• Integrated Windows Authentication
• Username & Password
Prerequisites
The MSAL.NET VBO depends on the following components:
App Registration
Before using this connector, you must create a App Registration within your Azure Active Directory with
sufficient permission to interrogate and manage user accounts. Additionally set the API permissions as
necessary depending upon the API actions that you plan to use.
Creation of the App Registration will provide you with the following items you will need to configure the
Microsoft Graph Teams Authentication VBO within Blue Prism:
Required Credential Information
• Client ID
• Client Secret
Web API Service Definition Information
• Azure Tenant ID
Depending on the actions that you need to use, you need to grant Application or Delegated permissions
as below.
NOTE: If you plan to use Delegated Permissions, your Azure administrator will need to use the Grant
admin consent for XYZ link to pre-authorize delegated access.
Configuration
The use the MSAL.NET VBO:
NOTE: To use the VBO, you must have an application definition within your Azure environment. Further,
you will have to provide the Tenant ID, for your Azure tenant, and the Client ID of the application
definition.
Input:
Name Description Data Type
TenantID Tenant ID of the organization Text
ClientID Client ID of the Azure app Text
ClientSecret Secret key for the Azure app Password
Scope Optional: Comma-delimited list of scopes for authorization. Default Text
value is https://graph.microsoft.com/.default.
Output:
Name Description Data Type
AccessToken Retrieved access token Text
Status A flag indicating the success or failure of the action. Flag
Exception Contains exception message if there was an error getting the Text
access token
Input:
Name Description Data Type
TenantID Tenant ID of the organization Text
ClientID Client ID of the Azure app Text
Scope Optional: Comma-delimited list of scopes for authorization. Default Text
value is https://graph.microsoft.com/.default.
pfx File Path Path to certificate in pfx format Text
pfx Secret Key Secret key (aka password) for the pfx certificate Password
Output:
Name Description Data Type
Result The result from the HTTP Call. Text
Status A flag indicating the success or failure of the action. Flag
Exception Contains exception message if there was an error getting the Text
access token
Input:
Name Description Data Type
TenantID Tenant ID of the organization Text
ClientID Client ID of the Azure app Text
Scope Optional: Comma-delimited list of scopes for authorization. Default Text
value is https://graph.microsoft.com/.default.
Output:
Name Description Data Type
AccessToken Retrieved access token Text
Status A flag indicating the success or failure of the action. Flag
Exception Contains exception message if there was an error getting the Text
access token
Input:
Name Description Data Type
TenantID Tenant ID of the organization Text
ClientID Client ID of the Azure app Text
Username Identifier of the user which the application requests token on Text
behalf of. Generally, in UserPrincipalName (UPN) format, e.g.
[email protected].
Password Password for the specified user. Password
Scope Optional: Comma-delimited list of scopes for authorization. Default Text
value is https://graph.microsoft.com/.default.
Output:
Name Description Data Type
AccessToken Retrieved access token Text
Status A flag indicating the success or failure of the action. Flag
Exception Contains exception message if there was an error getting the Text
access token
Support
This asset is provided free-of-charge by Blue Prism. Blue Prism does not provide formal support of this
asset. Please direct any questions you have, related to this asset, to the Digital Exchange Community
page:
https://community.blueprism.com/communities/community-home?CommunityKey=1e516cfe-4d1f-4de9-
a9eb-58d15bf38c81