Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Content Delivery API - With Azure AD B2C


Hello Guys,

I would like to implement the Content Delivery API with Azure AD B2C.

With following guideline I was suppose to start my implemenation

But I am getting the method mentioned in the documentation

1) UserService.IsUserValid ( using EPiServer.ContentApi.Core.Internal.UserService) => Am i refering wrong dll/namespace.
2) RoleService.IsValidRole

I have already added class 


[ModuleDependency(typeof(ServiceContainerInitialization), typeof(ContentApiCmsInitialization))]
public class ContentApiInitialization : IConfigurableModule
public void ConfigureContainer(ServiceConfigurationContext context)
context.Services.AddTransient<RoutingEventHandler, CustomContentApiRoutingEventHandler>();
context.Services.AddTransient<ContentApiRouteService, CustomContentApiRouteService>();

// set minimumRoles to empty to allow anonymous calls (for visitors to view site in view mode)
context.Services.Configure<ContentApiConfiguration>(config =>

context.Services.Configure<ContentApiSearchConfiguration>(config =>

public void Initialize(InitializationEngine context)
// Method intentionally left empty.

public void Uninitialize(InitializationEngine context)
// Method intentionally left empty.

Is there anything I need to add in Starup.cs. Or Do I need to implement the custom authorization?

Please give me head start..!

Any reply appreciate.


Nov 30, 2020 11:22
Johan Kronberg - Jan 11, 2021 15:55
Similar question here:

Hi Dipak Salve,

I don't really understand your question. 

Do you mean that you could not find the class UserService and RoleSerivce ?

Dec 10, 2020 3:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.