This website uses cookies to ensure you get the best experience on our website.

Skip to content
LOGO
  • Company

    About IGNEK

    Learn about our story and our mission.

    Careers

    We're hiring!

    We always looking for talented peoples. Join our team!

    Blogs

    The latest industry news, updates and info.

    Case Studies

    Take a closer look at the projects we've delivered

    Webinar

    Watch our latest organized webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Custom Enterprise Portal Development for flawless Solutions

    Dedicated Development Team

    Expand Teams, Optimize Development with Our Expertise

    Back-end Development

    Empowering your digital presence with robust backend development expertise

    Front-end Development

    Crafting engaging user experiences through expert frontend development

    Digital Transformation

    Embrace digital transformation by modernizing process

    SaaS Development

    Transform your business with SaaS Innovative Solutions

    Technologies

    Liferay Services

    Development & Customization

    Theme

    Upgradation

    Migration

    Proof of Concept

    Performance Tunning

    Architecture

    Support & Maintenance

    E-commerce

    Expert Advice

    React Services

    Enterprise Development

    Custom Application

    Single Page Application

    Architecture

    API Integration

    Migration

    Consulting

    Maintenance & Support

    Spring Boot Services

    Web Service

    MVC Web Development

    API Integration

    Security

    Migration

    Microservices

    Support & Maintenance

    AEM Services

    Consulting Service

    Site Development

    Migration & Upgradation

    Integration

    Maintenance & Support

    Custom Solutions

    Content Management

    Team Augementation

  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Transforming industries through cutting edge SaaS solutions.

    Customer Portal : Boost Business Productivity

    Streamline operations and enhance productivity with our Customer Portal solution.

    Liferay Based Intranet Portal

    Internal portal for company communication, collaboration and resources

    Integration

    Matomo Integration with Liferay

    Integrate Matomo to enable user interactions seamlessly.

    Microsoft Teams integration with Liferay

    Integrate to enable seamless collaboration, messaging within your portal.

    Jira Integration With Liferay

    Optimizes business operations by integrating with Jira.

  • Hire Us

    Liferay

    Get expert Liferay developers for seamless portal solutions.

    React JS

    Get expert ReactJS developers for dynamic web solutions.

    Web Developer

    Get custom web solutions from IGNEK's expert developers.

    Spring Boot

    Get top-notch Spring Boot developers for your project success!

    Healthcare

    Get top Healthcare Developers for cutting-edge medical software.

    MERN Stack

    Get expert MERN developers from IGNEK for custom, innovative project solutions.

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • info@ignek.com
    • Ahmedabad, Gujarat, India – 382470
SCHEDULE CALL
  • COMPANY
    • About
    • Case Studies
    • Blogs
    • Career
    • Webinar
  • SERVICES
    • Enterprise Portal Development
    • Dedicated Development Team
    • Back-end Development
    • Front-end Development
    • Digital Transformation
    • SaaS Development
  • SOLUTION
    • Customer Portal:  Boost Business Productivity
    • SaaS : Software as a Service
    • Liferay Based Employee Intranet Portal
  • TECHNOLOGY
    • Liferay Services
      • Liferay Development and Customization
      • Liferay Theme Development Service
      • Liferay DXP 7.4 Upgrade
      • Liferay Migration
      • Liferay Proof Of Concept
      • Liferay Performance Tuning
      • Liferay Architecture Design Service
      • Liferay Support And Maintenance Service
      • Liferay Ecommerce Development
      • Liferay Expert Advice
    • ReactJS Services
      • ReactJS Enterprise Application Development
      • ReactJS Custom Application Development
      • ReactJS Single Page Application Development (SPA)
      • ReactJS Applications Architecture
      • ReactJS API Integration
      • ReactJS Migration
      • ReactJS Consulting
      • ReactJS Maintenance and Support
    • Spring Boot Services
      • Spring Boot Web Development Service
      • Spring MVC Web Development
      • Spring Boot API Integration Service
      • Spring Boot Security
      • Spring Boot Migration Service
      • Spring Boot Microservices
      • Spring Boot Support & Maintenance Service
    • AEM Development Services
      • AEM Consulting Services
      • AEM Site Development
      • AEM Migration & Upgradation
      • AEM Integration Services
      • AEM Maintenance & Support
      • AEM Content Management
      • Custom AEM Solutions
      • AEM Team Augmentation
  • INTEGRATION
  • HIRE US
    • Hire Liferay Developer
    • Hire ReactJS Developer
    • Hire Spring Boot Developer
    • Hire Healthcare Developer
    • Hire Web Developer
    • Hire MERN Stack Developer
  • CONTACT US
  • Company

    About IGNEK

    Careers

    We're hiring!

    Blogs

    Case Studies

    Webinar

    Get in touch with our HR team

    • hr@ignek.com
    • +91 93284 95160
    • Ahmedabad, Gujarat, India – 382470
  • Services

    Enterprise Portal Development

    Dedicated Development Team

    Back-end Development

    Front-end Development

    Digital Transformation

    SaaS Development

    Technologies

    Liferay Liferay Services
    • Development & Customization
    • Theme
    • Upgradation
    • Migration
    • Proof of Concept
    • Performance Tuning
    • Architecture
    • Support & Maintenance
    • E-commerce
    • Expert Advice
    React React Services
    • Enterprise Development
    • Custom Application
    • Single Page Application
    • Architecture
    • API Integration
    • Migration
    • Consulting
    • Maintenance & Support
    Spring Boot Spring Boot Services
    • Web Service
    • MVC Web Development
    • API Integration
    • Security
    • Migration
    • Microservices
    • Support & Maintenance
    AEM AEM Services
    • Consulting Service
    • Site Development
    • Migration & Upgradation
    • Integration
    • Maintenance & Support
    • Custom Solutions
    • Content Management
    • Team Augmentation
  • Solution

    Ready for digital excellence

    In our rapidly evolving world, businesses are always on the lookout for fresh ways to improve their operations and connect with their audiences.

    Contact US

    Solutions

    SaaS : Software As A Service

    Customer Portal : Boost Business Productivity

    Liferay Based Intranet Portal

    Integration

    Matomo Integration with Liferay

    Microsoft Teams integration with Liferay

    Jira Integration With Liferay

  • Hire Us

    Liferay

    React JS

    Web Developer

    Spring Boot

    Healthcare

    MERN Stack

    Why Hire Developers From IGNEK ?

    • Certified Developer
    • Transparent Communication
    • Flexible Hiring Modals
    • Fully Signed NDA
    • Cost Effective
    • Easy Exit Policy

    Get in touch with our Sales team

    • sales@ignek.com
    • +91 6351576580
    • IGNEK
    • Ahmedabad, Gujarat, India – 382470
  • SCHEDULE CALL

DotNet Client Extension with Liferay

  • Liferay
  • October 13, 2025

Share On :

Introduction

The majority of companies today integrate various technologies in the software world. To operate these services, they were able to relate well with one another. Liferay 7.4 is a technology that allows developing websites, portals, and digital experiences. It also supports the use of REST APIs that assist other systems in interacting with it.

.NET applications can be connected to Liferay 7.4 by a .NET Client Extension. It describes itself as a bridge, an aid that allows the engineers of .NET to avail the capabilities of Liferay, including user management, content management, objects, and workflow management, in their non-Java projects.

Liferay-Layers This extension is based on the principle of secure API calls made via the REST protocol, and this implies that your .NET application is able to exchange data with Liferay without being constrained by its internal design. It assists in an easy and effective collaboration of your .NET application and Liferay.

 Prerequisites
  • Liferay DXP/Portal 7.x

  • Basic knowledge of Liferay Workspace

  • Understanding of Liferay’s Headless APIs

  • Code editor or IDE (Eclipse, IntelliJ IDEA, Visual Studio, or other developer tools)

Environmental Requirements
  • Running instance of Liferay Portal or DXP

  • .NET SDK (version 6.0 or higher)

Why Use a DotNet Client Extension?

A DotNet Client Extension makes it easy for .NET developers to connect their applications with Liferay 7.4. Here’s why it’s useful :

  • Works across platforms : You can easily connect your existing .NET systems with Liferay services.

  • Keep your main logic in .NET : Use Liferay’s APIs without changing your main .NET code or structure.

  • Scalable and flexible : Build small, independent microservices that communicate with Liferay without overloading your main system.

  • Secure communication : Use OAuth2 or API tokens to safely connect with Liferay’s APIs.

  • Best on enterprise apps : Useful to connect the backend of Liferay with .NET-based systems such as ERP, CRM, or HR systems or analytics.

Simply put, a DotNet Client Extension assists you in extending the features of Liferay with the help of .NET,  in a safe and easy way, and without affecting the inner code of Liferay.

How to Integrate .NET Client Extension with Liferay?

In order to use a .NET Client Extension with Liferay 7.4, you have to initially establish a connection between your .NET application and the REST APIs of Liferay. This allows your .NET application to carry on safe and effective operations of obtaining users and controlling content and processes.

Step 1 : Set Up Your Environment

Make sure you have the following ready before starting :

  • A running instance of Liferay 7.4 (Portal or DXP)

  • .NET SDK (6.0 or higher) installed

Step 2 : Create a new ASP.NET Core Web API project(Using Terminal)

				
					dotnet new webapi -n dotnet-api-client-extension
cd dotnet-api-client-extension
				
			

Step 3 : Add necessary NuGet packages

				
					dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer
dotnet add package System.IdentityModel.Tokens.Jwt
dotnet add package Microsoft.IdentityModel.Tokens
dotnet add package Newtonsoft.Json
				
			

Step 4 : Configure appsettings.json

				
					{
 "Logging": {
   "LogLevel": {
     "Default": "Information",
     "Microsoft.AspNetCore": "Warning"
   }
 },
 "AllowedHosts": "*",
 "ReadyPath": "/ready",
 "Domains": [ "http://localhost:58084", "http://localhost:8080", "http://localhost:5173" ],
 "Liferay": {
     "MainDomain": "localhost:8080",
     "ServerProtocol": "http",
     "OAuthAppExternalReferenceCode": "dotnet-oauth-application-user-agent",
     "OAuthJWKSUri": "/o/oauth2/jwks"
   }
}
				
			

Step 5 : Create a client-extension.yaml file

				
					assemble:
   - include:
         - "**/*.cs"
         - appsettings.json
dotnet-oauth-application-user-agent:
   .serviceAddress: localhost:58084
   .serviceScheme: http
   name: DotNet OAuth Application User Agent
   scopes:
       - Liferay.Headless.Admin.Workflow.everything
   type: oAuthApplicationUserAgent
dotnet-object-action-1:
   name: DotNet Object Action 1
   oAuth2ApplicationExternalReferenceCode: dotnet-oauth-application-user-agent
   resourcePath: /dotnet/object/action/1
   type: objectAction
				
			

Step 6 : Configure CORS and JWT Middleware

				
					using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.IdentityModel.Tokens;
using System.Net.Http.Json;
using System.Text.Json;

var builder = WebApplication.CreateBuilder(args);
var config = builder.Configuration;

// Configure CORS
builder.Services.AddCors(options =>
{
   options.AddPolicy("AllowLiferay", policy =>
   {
       policy.WithOrigins(config.GetSection("Domains").Get<string[]>())
             .AllowAnyHeader()
             .AllowAnyMethod();
   });
});

// Add JWT authentication
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
   .AddJwtBearer(options =>
   {
       options.Events = new JwtBearerEvents
       {
           OnMessageReceived = context =>
           {
               var authHeader = context.Request.Headers["Authorization"].ToString();
               if (!string.IsNullOrEmpty(authHeader) && authHeader.StartsWith("Bearer "))
               {
                   context.Token = authHeader["Bearer ".Length..].Trim();
               }
               return Task.CompletedTask;
           },
           OnTokenValidated = async context =>
           {
               var httpClient = new HttpClient();
               var liferayConfig = config.GetSection("Liferay");
               var jwksUri = $"{liferayConfig["ServerProtocol"]}://{liferayConfig["MainDomain"]}{liferayConfig["OAuthJWKSUri"]}";

               var jwksResponse = await httpClient.GetFromJsonAsync<JsonElement>(jwksUri);

           },
           OnAuthenticationFailed = context =>
           {
               context.Response.StatusCode = 401;
               return Task.CompletedTask;
           }
       };

       options.TokenValidationParameters = new TokenValidationParameters
       {
           ValidateIssuer = false,
           ValidateAudience = false,
           ValidateLifetime = false,
           ValidateIssuerSigningKey = true
       };
   });

builder.Services.AddControllers();

var app = builder.Build();

app.UseCors("AllowLiferay");
app.UseAuthentication();
app.UseAuthorization();

app.MapGet(config["ReadyPath"], () => "READY");

app.MapPost("/dotnet/object/action/1", async (HttpContext ctx) =>
{
  
   var json = await ctx.Request.ReadFromJsonAsync<object>();
   Console.WriteLine(json);
   return Results.Json(json);
});

app.Run();
				
			

Step 7 : Run the API

				
					dotnet run
				
			
  • Test /ready → should return “READY”.
  • Test /sample/object/action/1 with JWT from Liferay → should accept and return the JSON.
dotnetJson
Conclusion

By using a .NET Client Extension along with Liferay, one can easily connect Liferay with .NET-based applications. Developers are also able to use Liferay with their preferred technology stack using secure OAuth2 authentication and REST APIs, and with all the capabilities provided by Liferay. This solution eases the process of integrating the enterprises and advances the scale, as well as the clean architecture, which enables both systems to cooperate with one another effectively and steadily.

Explore Our Services

Discover how we can help your business thrive, whether you’re running a small startup, an SME, or a large enterprise. We’re here to understand your unique needs and goals, offering the expertise and resources to support your journey to success.
Stay informed about our Liferay services and updates by subscribing to our newsletter—just fill in the details below to subscribe.

Loading
Loading...

Related Blogs

September 30, 2025
Trigger External Microservices from Object Actions with Client Extensions
Trigger External Microservices from Object Actions with Client Extensions
July 19, 2024
What Is Client Extension & How We Can Use
What Is Client Extension & How We Can Use?
August 19, 2025
Microservice Client Extension
Microservice Client Extension
Loading...

Featured Projects Portfolios

October 3, 2023
Migration to Liferay DXP Portal for Enhanced Capabilities
Migration to Liferay DXP Portal for Enhanced Capabilities
March 21, 2024
EPF Government Enterprise Website _ Multilingual, Access for Member, Employer, Corporate - New
EPF Government Enterprise Website : Multilingual, Access for Member, Employer, Corporate
June 19, 2024
Music License Management Portal _ Onboarding & Data Integrity
Music License Management Portal : Onboarding & Data Integrity

Digital Solutions for Your Business with IGNEK

4.9

5.0

5.0

5.0

LOGO

Making the world a better place through constructing elegant hierarchies

COMPANY

  • About
  • Career
  • Case Study
  • Blogs

SERVICES

  • Enterprise Portal Development
  • Dedicated Development Team
  • Back-end Development
  • Front-end Development
  • Digital Transformation
  • SaaS Development

HIRE US

  • Liferay
  • Spring Boot
  • ReactJS
  • Healthcare
  • MERN Stack
  • AEM

CONTACT

  • info@ignek.com
  • info@ignek.com
SALES
  • sales@ignek.com
  • (+91) 635 157 6580
CAREER
  • hr@ignek.com
  • (+91) 932 849 5160
  • E 910-912, Ganesh Glory 11, Jagatpur Road, SG Highway, Ahmedabad, Gujarat - 382470

© 2018-2025 IGNEK, Inc. All rights reserved

Linkedin Facebook X-twitter Instagram