# Web Redirect URL Configuration

1. Go to Azure Portal and Locate Your App Registration
   * Log in to the [Azure Portal](https://portal.azure.com/).
   * Navigate to Azure Active Directory.
   * Click on App registrations.
   * Select the application that you want to configure (or create a new registration if you haven’t done so already).
2. Add a Web Redirect URL
   * Once inside the app registration, go to the Authentication section on the left-hand menu.
   * Under the Redirect URIs section, click Add a platform.
   * Select Web as the platform type
   * Enter your Redirect URL in the Redirect URIs field.
   * This URL should match the address where your application will receive responses from the Azure authentication service.  For Example:

> <https://yourappdomain.com/auth-response>

* Click Configure to save the web platform.

3. Review the Redirect URL Format.  The Redirect URL must meet the following requirements:
   * It should start with https\:// (for web apps).
   * Localhost URLs are allowed for testing (<https://localhost:1234>), but if your app is intended for production use, make sure it’s set to a secure, valid URL.
4. Save and Verify
   * Click Save to finalize your changes.
   * Verify that the Redirect URL appears correctly in the Authentication section.
5. Check for Multiple Redirect URIs (If Applicable)

   * If your application uses multiple environments (e.g., development, testing, production), you can specify multiple redirect URIs by clicking Add URI in the Redirect URIs section.
   * Each URL should point to the corresponding environment (e.g., <https://dev.yourapp.com/auth>, <https://test.yourapp.com/auth>, <https://yourapp.com/auth>).

   Example of a Configured Redirect URI in App Registration:

> <https://myapp.com/signin-oidc>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.alemba.com/asm-hermes/setup-and-configure-asm/setting-up-your-system/setup-email/setting-up-incoming-and-outgoing-email/configuring-exchange-web-services-ews/prerequisites/web-redirect-url-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
