Skip to content

Commit e68ca46

Browse files
Tom GotsmanTom Gotsman
authored andcommitted
azure auth
1 parent d4fb3b2 commit e68ca46

File tree

5 files changed

+56
-18
lines changed

5 files changed

+56
-18
lines changed
13.4 KB
Loading
33.8 KB
Loading
23.3 KB
Loading
11.7 KB
Loading

docs/ai_builder/integrations/azure_auth.md

Lines changed: 56 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ import reflex as rx
1111
from reflex_image_zoom import image_zoom
1212
```
1313

14+
15+
## Step 1: Set Up Azure App Registration
16+
17+
Before connecting, you need to register your app in Azure Portal:
18+
19+
1 - Go to [Azure Portal](https://portal.azure.com)**App Registrations**
20+
21+
2 - Click **New registration** as shown in the image below:
22+
1423
```python eval
1524
rx.el.div(
1625
image_zoom(
1726
rx.image(
18-
src=rx.color_mode_cond(
19-
"/ai_builder/integrations/azure_auth_light.webp",
20-
"/ai_builder/integrations/azure_auth_dark.webp",
21-
),
27+
src="/ai_builder/integrations/azure_auth_1.webp",
2228
class_name="p-2 rounded-md h-auto",
2329
border=f"0.81px solid {rx.color('slate', 5)}",
2430
),
@@ -28,28 +34,60 @@ rx.el.div(
2834
)
2935
```
3036

31-
## Step 1: Set Up Azure App Registration
32-
33-
Before connecting, you need to register your app in Azure Portal:
37+
3 - Register your app. Ensure that for the Redirect URI you select **Web** and enter the following URI that you find in the Azure Auth Manager integration settings in AI Builder:
38+
```
39+
https://{your-sandbox}/authorization-code/callback
40+
```
3441

35-
1. Go to [Azure Portal](https://portal.azure.com)**App Registrations**
36-
2. Click **New registration**
37-
3. Configure your app settings
38-
4. In **Authentication**, add the Web Redirect URI: `https://{your-sandbox}/authorization-code/callback`
42+
```python eval
43+
rx.el.div(
44+
image_zoom(
45+
rx.image(
46+
src="/ai_builder/integrations/azure_auth_2.webp",
47+
class_name="p-2 rounded-md h-auto",
48+
border=f"0.81px solid {rx.color('slate', 5)}",
49+
),
50+
class_name="rounded-md overflow-hidden",
51+
),
52+
class_name="w-full flex flex-col rounded-md cursor-pointer",
53+
)
54+
```
3955

40-
## Step 2: Gather Your Credentials
56+
4 - On the next page get your `client_id` (`AZURE_CLIENT_ID`) and `tenant_id` (`AZURE_VALID_TENANT_IDS`) from the **Overview** tab.
4157

42-
After registering your app, collect the following information:
58+
```python eval
59+
rx.el.div(
60+
image_zoom(
61+
rx.image(
62+
src="/ai_builder/integrations/azure_auth_3.webp",
63+
class_name="p-2 rounded-md h-auto",
64+
border=f"0.81px solid {rx.color('slate', 5)}",
65+
),
66+
class_name="rounded-md overflow-hidden",
67+
),
68+
class_name="w-full flex flex-col rounded-md cursor-pointer",
69+
)
70+
```
4371

44-
- **AZURE_CLIENT_ID**: *Your application (client) ID from App Registration*
72+
5 - Next click `Add a certificate or secret` and copy the generated secret value (`AZURE_CLIENT_SECRET`).
4573

46-
- **AZURE_CLIENT_SECRET**: *Client secret generated in Certificates & secrets*
74+
```python eval
75+
rx.el.div(
76+
image_zoom(
77+
rx.image(
78+
src="/ai_builder/integrations/azure_auth_4.webp",
79+
class_name="p-2 rounded-md h-auto",
80+
border=f"0.81px solid {rx.color('slate', 5)}",
81+
),
82+
class_name="rounded-md overflow-hidden",
83+
),
84+
class_name="w-full flex flex-col rounded-md cursor-pointer",
85+
)
86+
```
4787

48-
- **AZURE_VALID_TENANT_IDS**: *Comma-separated list of tenant IDs that can access your app*
4988

50-
> **Note:** Keep your client secret secure and use different registrations for development, staging, and production environments.
5189

52-
## Step 3: Configure the Integration
90+
## Step 2: Configure the Integration
5391

5492
1. Go to the **Integrations** section in your app settings by clicking **`@`** and then clicking the **Integrations** tab at the top.
5593
2. Click **Add** next to Azure Auth Manager.

0 commit comments

Comments
 (0)