Skip to content

ServiceNow.Core

SNow.Core.Authentication

AuthenticationConfig Class

Description of the configuration of an AzureAD public client application (desktop/mobile application). This should match the application registration done in the Azure portal

csharp
public class AuthenticationConfig

Inheritance System.Object 🡒 AuthenticationConfig

Properties
AuthorityURL of the authority
BaseAddressWeb API base URL
CertificateNameName of a certificate in the user certificate store
ClientIdGuid used by the application to uniquely identify itself to Azure AD
ClientSecretClient secret (application password)
Instanceinstance of Azure AD, for example public Azure or a Sovereign cloud (Azure China, Germany, US government, etc ...)
ScopeWeb API scope. With client credentials flows, the scopes is ALWAYS of the shape "resource/.default"
TenantIdThe Tenant is: - either the tenant ID of the Azure AD tenant in which this application is registered (a guid) or a domain name associated with the tenant - or 'organizations' (for a multi-tenant application)
Methods
ReadFromConfiguration(IConfigurationSection)
ReadFromJsonFile(string)Reads the configuration from a json file

Released under the MIT License.