Add new or customize existing OpenID Connect authentication provider
By default Sitefinity CMS comes with preinstalled OpenID Connect (OIDC) external authentication provider. You can create or customize additional ones following this sample.
- Implement the new provider.
- Register the implementation in Sitefinity CMS.
- Navigate to Administration » Settings » Advanced » Authentication » SecurityTokenService » AuthetnicationProviders.
- Click Create New.
- Select OpenIDConnectAuthenticationProviderElement.
- Configure a Name and a Title for the provider.
Make sure the Name in the configuration settings matches exactly the name you used when you registered it in the code. In this sample this is MyOIDC.
- If the provider is not enabled, enable it.
- Click Save changes.
Extending the default implementation
If you want to extend the default implementation you can do so by implementing a new class and configuring it in the NotificationsType field in the configuration.
- Create your handler
- Navigate to Administration » Settings » Advanced » Authentication » SecurityTokenService » AuthetnicationProvider » OpenIDConnect.
- Configure the name of your handler in the NotifcationsType field. In this example we fill out AuthenticationSamples. MyCustomOIDCHandler.
- Save changes.