Authenticating a service so it can request data from another service behind Azure Easy Auth

Mikkel Glerup (Marine Travel) 0 Reputation points
2024-12-19T15:17:03.8233333+00:00

Hello.

I want to authenticate a service so it can call another service using easy auth WITHOUT any user input, while still using Easy Auth on the service that is being called.

I have 2 services 1 which is basicly a frontend with a controller. Let's call this one "Service A" This service is also locked down by using aures built in authentication, and then using Microsoft as an identity provider.

The other service, let's call it "Service B". "Service B" is just a simple background service disgused as a web API. We've got some middleware to make sure only calls with the proper subscriptionkey can call it though.

Is there anyway for "Service B" to get authenticated and call "Service A" WITHOUT any user input?

I've used Chatgpt to help me, and it has set up an JWT token that I then get an access token to. The only problem this ONLY works if I disable our Microsoft authentication which is a no go.

This has been done by exposing an API and then adding the API permission to the App Registration belonging to "Service B"

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,008 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,511 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
355 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,092 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.