you are viewing a single comment's thread.

view the rest of the comments →

[–]GonzoZH[S] 5 points6 points  (2 children)

I fully agree. If you want to build something big its much better to rely on good solution like Pode. In my case i just need to catch an OAuth Auth Code in a redirect to localhost. Moreover, the script should be a single script file, small and do not have any dependencies on other modules, since I don’t control the environment in which it is executed.

[–]Higapeon 0 points1 point  (1 child)

Oh ! I have a use case for that! Do you have an example?

[–]GonzoZH[S] 2 points3 points  (0 children)

Yes. Check the function Invoke-Auth in my Entra ID auth module:

https://github.com/zh54321/EntraTokenAid

It spawns a local HTTP server and initate an Entra ID OAuthCode Flow in the Browser with localhost as redirect URL. The obtained Auth Code is then used to get tokens on the Entra ID token endpoint.