OData - Custom Authentication

0
We have a Mendix 10 application exposing an OData v4 service with custom authentication via a microflow. The microflow validates a JWT Bearer Token and returns a User entity.Our goal is to integrate Power BI and Tableau with this OData service using OAuth 2.0 delegated authentication (Azure Entra ID).The problem:When Power BI calls the OData endpoint without a Bearer Token, Mendix returns a 401 response but WITHOUT the WWW-Authenticate header. Power BI requires this header to know how to obtain an OAuth token automatically. Without it, Power BI shows the error: 'This credential type is not supported for this resource.'What we need:We need the Mendix OData 401 response to include:WWW-Authenticate: Bearer authorization_uri="https://login.microsoftonline.com/{tenant-id}", resource_id="{client-id}"
asked
1 answers
0

Hi Liliana,

I'm curious: Are you using the Mendix OIDC SSO module for API security, or are you validating the JWT entirely in your custom authentication microflow? I'm assuming you wrote your own?
Have you meanwhile been able to progress this issue?

Potentially this could be an enhancement in the OIDC SSO module, but this needs further investigation by one of our architects.



answered