Appearance
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 AuthenticationConfigInheritance System.Object 🡒 AuthenticationConfig
| Properties | |
|---|---|
| Authority | URL of the authority |
| BaseAddress | Web API base URL |
| CertificateName | Name of a certificate in the user certificate store |
| ClientId | Guid used by the application to uniquely identify itself to Azure AD |
| ClientSecret | Client secret (application password) |
| Instance | instance of Azure AD, for example public Azure or a Sovereign cloud (Azure China, Germany, US government, etc ...) |
| Scope | Web API scope. With client credentials flows, the scopes is ALWAYS of the shape "resource/.default" |
| TenantId | The 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 |