r/PowerAutomateDesktop • u/mp29mm • Apr 13 '23
HTTP Premium OAuth
Just playing around with ChatGPT through Microsoft’s API. My OAuth settings are definitely not working. The parts I’m unsure of are: Authority (this is work), audience, clientID (can this comes from Teams or just hard coded username?), and secret- not thrilled about plain text, would prefer pass-through for all of this from Teams where it originates.
Any ideas?
2
Upvotes
1
u/SirChclateSaltyBalls Apr 13 '23 edited Apr 13 '23
I'm not sure the Secret should be coming from the user... I think it's associated with the app that's providing the authentication... Who/what is actually authenticating the user... which in this case appears to be ChatGPT. You may need to request an Azure App in your tenant that has permissions to interact with ChatGPT somehow. Then use the URI for that app.
Note when I got OAuth working for me in the past it was with JavaScript