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:
- Open
AuthenticationConfig.configfile, located in your project's~\App_Data\Sitefinity\Configurationfolder. - 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> - 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.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.