IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
In this tutorial, you create HTTP requests to access Sitefinity CMS OData services using access tokens with Bearer token authentication. To do this, you use a JavaScript OpenID Connect (OIDC) client OAuth2 protocol support for client-side applications.
In this tutorial, you enable users, authenticated in the backend, to obtain access token and have permissions to view News items via a protected service. You can additionally implement other actions authenticated users can complete, such as modify or delete.
The files you work with in this tutorial are:
NOTE: In this tutorial, you work with specific versions of the files, listed above. You can download these file versions from the GitHub repository.
Make sure the authentication protocol is set to OpenID (the default authentication protocol in Sitefinity CMS):
To setup the application and create HTTP requests:
NOTE: By default, assets are copied to the root folder of your application.
NOTE: By default, the links direct to the root folder.
The URL for the page containing the code handling the silent renew.
The type of response desired from the OIDC/OAuth2 provider.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important