Did you know that you can acquire an access token for an Azure user-assigned identity using PowerShell and an Azure Storage account? You can achieve this by hosting a minimal OpenID Provider and delegating trust via workload identity federation. This post will also help you better understand the technical details of how federated credentials work.
Note
This only gives you the access token. There might also be network access control or Entra conditional access for workload identities which limit calling resources with the token.
The process in brief:
- Create an RSA sign