Hey everyone! I'm diving into developing PowerShell scripts for reporting in our customer Azure and M365 environments. So far, I've been using app registrations with certificates for authentication, which works great for a single tenant. Now, I'm trying to set up a multi-tenant app to get consent from customer tenants and run the script through a list of customers. However, I'm having a tough time figuring out the redirect URIs. I've mainly just used localhost for local apps, but right now, I'm using https://login.microsoftonline.com as my redirect URI. While it does create the app in the customer tenant, it also redirects me back to M365, which isn't what I want. Is there a better redirect URI I should be using that will direct me back to the app in the customer tenant? Thanks!
1 Answer
Before tackling the redirect URI, can you clarify how your authentication flow currently works from PowerShell to the browser and back? Generally, you want the redirect URI to be something you control. For example, when a user clicks a 'Login with Microsoft' button, they are sent to Microsoft’s login page and back to a specified URI on your site after logging in. Depending on your flow, MS will provide a code or token you can use.
Related Questions
Fix Not Being Able To Add New Categories With Intuitive Category Checklist For Wordpress
Get Real User IP Without Installing Cloudflare Apache Module
How to Get Total Line Count In Visual Studio 2013 Without Addons
Install and Configure PhpMyAdmin on Centos 7
How To Setup PostfixAdmin With Dovecot and Postfix Virtual Mailbox
Dovecot Error Unknown database driver mysql