I would like to generate new tokens (from Microsoft graph api) and reuse tokens (until they expire) using power automate. However I do not see any built in connectors to use msal. One solution is as below:
However as you can see, each time the table is modified, it generates a new token. I would like to avoid this step and instead use token cache until I am required to generate new token. I see that 3rd party libraries (python, c# etc) provide this capability. Given such libraries exist, how can I leverage them to securely generate and reuse tokens - do I have to create a custom connector and invoke a python script (utilizing msal lib) from Azure functions? If so, this looks a bit convoluted since MSAL is integral and part and parcel of MS, so I was hoping for more direct integration with a cleaner solution.