Help with Multi-Tenant App Redirect URIs in Azure

0
3
Asked By TechieNinja99 On

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

Answered By CloudWizard42 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.