Query/Question
Is there a way to use AzureServiceTokenProvider with the V1 auth endpoints in order to work with easyAuth?
Why is this not a Bug or a feature Request?
This is asking if the capability is there not asking for it.
Currently, easyAuth only works with V1 endpoints. Due to this fact the tokens AzureServiceTokenProvider generates are auto rejected by easyAuth.
Setup (please complete the following information if applicable):
EasyAuth and Azure
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
@nonik0 do you konw if AzureServiceTokenProvider can be used with EasyAuth in this context?
@schaabs @Alec321 I am not familiar with EasyAuth at all so I need more context here. What is meant specifically by "V1 auth endpoints"? AppAuth interfaces with many "auth endpoints" so not sure what the specific scenario is here.
@nonik0 The goal of this issue was to get EasyAuth to work with managed identities using AzureServiceTokenProvider. EasyAuth is a Microsoft product that is used to get auth for your app services (https://medium.com/tech-feed/azure-active-directorys-hidden-feature-easy-auth-315e34d92249). The problem is managed identities and AzureServiceTokenProvider do not support Microsoft app registration V1 token endpoints. The tokens AzureServiceTokenProvider generates are "v2" tokens. EasyAuth only works with Microsoft V1 endpoints. In several support channels, I've asked if easyAuth is going away, or will be able to support v2 tokens with no concrete answer from anyone. My hope was just to allow AzureServiceTokenProvider to get V1 tokens then it would be a non issue. Does that make sense?
@Alec321 What you're saying makes sense, but from what it sounds like that sort of support would need to also be on the platform-side, i.e. adding support for v1 tokens to the App Service managed identity endpoint or the Azure VM IMDS endpoint. In that case, it makes more sense for EasyAuth to support v2 tokens since that's what all platforms and SDKs are using now.
That being said, this could be a good ask for Azure.Identity, at least for awareness. Azure.Identity moving forward will be the recommended authentication library for Azure SDKs (more info on differences between AppAuth and Az.Id will be published soon).
Question appears to be answered. May we close this thread?
@anaismiller No, I don't think so. This is still broken with no definitive way to move forward. We ended up changing our app, but if we were stubborn this isn't a solution. Unless the solution is sorry it's not supported.
AzureServiceTokenProvider does not and will not support v1 auth endpoints for EasyAuth at this moment.