Hey guys! I am very new to power pages. I need your help. I want to trigger an OAuth 2.0 authorization code flow from power pages and save the access token to azure key vault or some other source from where later on I can use it in my Power Automate flows. The flow would include user interaction, as they have to trigger the flow. The overall flow is as below:
1. User clicks on a button on power pages to trigger the flow
2. They are redirected to a website to check if they are logged in.
3. If they are logged in, they are presented with scopes that they will be allowing access to.
4. Once they approve the scope, the rest of OAuth 2 process follows, including a code exchange and eventually access token.
5. These access token do not expire, so I would want them to be stored in azure vault or something similar, along with the user information who triggered the process.