Questions tagged [easy-auth]

30 questions
4
votes
1 answer

Invalid Audience when protecting Azure Function with App Service Authentication (EasyAuth) and a Custom OpenID Provider

I have an Azure Function (tried both Windows and Linux Consumption) using Azure App Service Authentication (Easy Auth) with a custom OpenId Connect provider to authenticate my Azure Function with an http trigger. I configured a client in my Identity…
2
votes
0 answers

Using Easy Auth in Azure from an SPA web client

Given an Azure Function based API, setup to use App Service Authentication (Easy Auth)... Authorization works as expected when using the browser because auth cookies are present…
Techlead
  • 172
  • 1
  • 10
2
votes
1 answer

Azure App Services Authentication & .Net 6

I've been in the process of updating a .Net Framework 4.8 web & web API to .Net 6. This app is hosted in Azure App Services and used the authentication settings/easy auth for both Azure AD (with personnel accounts) and Google. We allow…
Michelle
  • 121
  • 1
  • 6
2
votes
0 answers

Azure App Service with OpenID authentication for backend services (WebAPI, Resource Server): Access Token issue

I have two web application hosted on Azure. A front-end and a back-end. For both I configured to use EasyAuth (added a 3rd party OpenID Connect Identity Provider on the Azure Portal). When the user opens a browser, s/he navigates to the Front-end…
Norbert
  • 31
  • 2
2
votes
1 answer

Azure App Service with Authentication Enabled silently logs in with previous credential after logout

I have an Azure App Service Authentication / Authorization configured to use to sign in with Microsoft (aka Easy Auth). Everything works great. However I'm confused about the logout behavior. If I go to myapp/.auth/logout I am definitely logged…
1
vote
1 answer

Content-Security-Policy settings when using built in Azure App Service Authentication (Easy Auth)

I have a Blazor Server app deployed to an Azure App Service using the built in authentication feature. Traffic comes in via Azure Front Door, and a Content-Security-Policy is set (by the front door service) using an Overwrite rule that sets…
1
vote
4 answers

EasyAuth on Azure Function App errors out custom oidc provider

We have a Python Linux azure function that is connected to a custom oidc provider and azure ad to provide authentication to the HTTP triggered functions using Microsofts easyauth. After the initial setup, the azure function was working and has been…
1
vote
1 answer

App Services EasyAuth for protecting API with OIDC

I currently have a solution where I have an OIDC provider, a client that obtained a token from that provider, and a protected resource (API). Currently I'm using Easy Auth on the API, so far it seems to validate the token correctly. The only problem…
XWIKO
  • 308
  • 4
  • 13
1
vote
1 answer

EasyAuth with a SPA and AzureFunction on different hosts

I'm trying to use EasyAuth (aad) with a SPA, which is on "localhost:8080" at the moment, and an Azure Function which is hosted in Azure ({function-app}.azurewebsites.net. The intent is for the SPA to call a secured endpoint on the Azure Function.…
scottrudy
  • 1,633
  • 1
  • 14
  • 24
1
vote
0 answers

Azure AD B2C with EasyAuth for Kubernetes

We are using Azure AD B2C with custom policies in a SPA in Kubernetes and have seen that EasyAuth can also be used in Kubernetes with Azure AD (https://github.com/Azure/EasyAuthForK8s). The page also says that "Azure AD B2C custom policies for…
1
vote
1 answer

Get bearer token with MSAL.NET to access App Service with EasyAuth

I have an Azure App Service which is authenticated using Azure AD EasyAuth. I am trying to send a request from another App Service using C# and MSAL.NET (Microsoft.Identity.Client). The authentication code looks like this var app =…
1
vote
1 answer

How to integrate Easy Auth with .NET Core 3.1 MVC App?

I am developing a .NET Core 3.1 MVC App and then publishing it to Azure Web App. In the Azure portal, for this hosted app -> I enabled App Service Authentication with AzureAD Login. But then the authentication doesn't work as…
1
vote
1 answer

Calling Azure Function App from static-file SPA

ANSWER: To anyone looking for this answer, I was able to get the token I needed by specifying the web API in the scopes of an MSAL acquireToken call, like so: let token = msal.acquireToken({ scopes: […
TheDoc
  • 688
  • 2
  • 14
  • 33
0
votes
1 answer

Refresh id_token on Azure App Service with Easy Auth by calling the /.auth/refresh endpoint

I have a linux Web App on Azure (fastAPI) that currently has these responsibilites serves a Single Page Application (SPA) is a reverse proxy for the backend For this API, I use the built-in authentication feature "Easy Auth". What I currently do…
0
votes
1 answer

Azure EasyAuth with B2C and downstream appservices

I have two Container apps on azure, one hosting a web app(proxy) the other an Api that the proxy uses and this will eventually have a App pointing to it. I have configured my b2c tenant with customs policies like in the docs. I went this route…
Steve
  • 1,061
  • 10
  • 21
1
2