Hi all,
I've been digging what are the options and how to secure an API call from Portals/Pages to external APIs.
The Portal already uses Azure AD B2C for authentication and have some custom information in their B2C tokens, but so far I could not figure out how to use it (or if I should use B2C tokens to authenticating against external APIs).
So far I could obtain an JWT token from Portals using this approach: https://carldesouza.com/jwt-json-web-tokens-and-power-apps-portals/
However I can't find references on how to extend or add more info to this token as it seems generated automatically by Portals (and regardless of the authentication method, which makes this token being different from the B2C one, similarly to this thread: https://powerusers.microsoft.com/t5/Power-Apps-Portals/Secure-an-external-net-5-0-WebAPI-using-PowerApps-portal-token/td-p/1391818)
Does someone know how to extend this token generated by portal or how to use the B2C token instead?
Thanks