Authenticate to a service

Enable basic authentication for web services

By default, basic authentication is disabled for all protected backend web services in Sitefinity/Services and RestApi/Sitefinity, except for Sitefinity/CMIS/RestAtom/ and Sitefinity/Services/SiteSync/SiteSyncService.svc.

To turn on basic authentication for all web services, perform the following:

  1. Open AuthenticationConfig.config file, located in your project's ~\App_Data\Sitefinity\Configuration folder.
  2. Insert the following section:
    XML
    <authenticationConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="10.0.6400.0">
        <relyingPartySettings enableBasicAuthenticationForBackendServices="True" />
    </authenticationConfig>
  3. Save and close the file.

This section contains

Request access token to call a web service with OAuth2
Create HTTP requests to access Sitefinity CMS OData services using access tokens with Bearer token authentication. Use OIDC and OAuth2 protocol.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.