public static ActiveDirectoryClient CreateAppOnlyActiveDirectoryClient(this AuthenticationContext authContext, Guid tenantId) { return(authContext.CreateAppOnlyActiveDirectoryClient(tenantId.ToString())); }
/// <summary> /// Creates an <see cref="ActiveDirectoryClient"/> instance in app-only mode from the current authentication context. /// </summary> /// <remarks> /// This method uses the tenant ID configured in <see cref="AppSettings.TenantId"/>. /// To use the returned instance you must give the configured application the proper application permissions to to the /// <c>Windows Azure Active Directory</c> application, <c>Read directory data</c> at a minimum. /// </remarks> public static ActiveDirectoryClient CreateAppOnlyActiveDirectoryClient(this AuthenticationContext authContext) { return(authContext.CreateAppOnlyActiveDirectoryClient(AppSettings.TenantId)); }