The beta version of Opti ID is not published to any public NuGet feed, please see the releases below for a downloadable version instead. Each download contains a pre-release version of Opti ID and CMS. Unzip the packages, include them in your solution, update nuget.config to include the directory where you put the packages, and then install the packages in your project file(s).
In startup.cs in the ConfigureServices method, enable Opti ID with following:
By default, Opti ID is only enabled in shell modules, preview- and edit mode. UseAsDefault enables Opti ID globally throughout the application. AuthenticationOptions can be configured if more control over which authentication scheme should be active when is needed. The namespace EPiServer.OptimizelyIdentity.OptimizelyIdentityDefaults contains constants if you need to reference the scheme while configuring.
You should not call services.AddCmsAspNetIdentity<TUser>() if ASP.NET Identity is not being used.
Run Opti ID locally
You can use Opti ID locally on https://localhost:5000. For this to work you also need some settings. We will provide these to you during the onboarding. These settings are provided automatically when the application is deployed to DXP. You should add these settings in appsettings.json:
Releases : CMS + Customized Commerce pre-releases
For the closed beta we do not publish any packages publicly, instead all necessary packages can be downloaded from here.
|2023-05-26||INSTALL THIS ONE: No changes, except built against latest version of CMS UI.||EPiServer.OptimizelyIdentity.0.5.3-ci-59.zip|
|2023-05-25||No changes, except built against latest version of CMS UI.||EPiServer.OptimizelyIdentity.0.5.3-ci-58.zip|
|2023-05-17||No changes, except built against latest version of CMS UI.||EPiServer.OptimizelyIdentity.0.5.3-ci-57.zip|
|2023-05-08||Relaxed token lifetime validation to cater for clock skew.||EPiServer.OptimizelyIdentity.0.5.3-ci-56.zip|
|2023-04-12||Minor UI bugfixes.||EPiServer.OptimizelyIdentity.0.5.2-ci-53.zip|
|2023-04-11||Updates product switcher to match the appearance of the instance switcher.||EPiServer.OptimizelyIdentity.0.5.1-ci-52.zip|
|2023-03-28||Adds support for roles. Also includes minor UI bugfixes.||EPiServer.OptimizelyIdentity.0.5.0-ci-50.zip|
|2023-03-27||Contains bugfix for when access token expires before session expires. Also includes minor UI bugfixes.||EPiServer.OptimizelyIdentity.0.5.0-ci-46.zip|
|2023-03-23||Initial beta release. This release does not include roles from Optimizely Identity. Roles are still hardcoded to "Content Editors" and "Content Admins." We recommend not deploying this to production, unless roles are not used for authorizing content.||EPiServer.OptimizelyIdentity.0.1.0-ci-45.zip|