Skip to content

Commit f638ebe

Browse files
authored
Added formatting
1 parent 16d0f13 commit f638ebe

File tree

1 file changed

+7
-8
lines changed
  • samples/features/security/azure-active-directory-auth/integrated

1 file changed

+7
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
1+
## Run this sample
22
Note: Run this project on a machine joined to a domain that is federated with Azure Active Directory. A contained database user representing your Azure AD principal, or one of the groups, you belong to, must exist in the database and must have the CONNECT permission.
33

4-
Before building and running the Integrated project:
5-
In Program.cs, locate the following lines of code and replace the server/database name with your server/database name.
6-
4+
1. Before building and running the Integrated project:
5+
+ In Program.cs, locate the following lines of code and replace the server/database name with your server/database name.
6+
```
77
builder["Data Source"] = "aad-managed-demo.database.windows.net "; // replace 'aad-managed-demo' with your server name
88
builder["Initial Catalog"] = "demo"; // replace with your database name
9+
```
910

10-
11-
Please note that
12-
builder["Authentication"] method is set to SqlAuthenticationMethod.ActiveDirectoryIntegrated;
11+
2. The builder["Authentication"] method must be set to SqlAuthenticationMethod.ActiveDirectoryIntegrated;
1312
![screenshot of visual studio showing builder fields to change] (/samples/features/security/azure-active-directory-auth/img/vs-authentication-method-integrated.png)
1413

15-
Running this project on a machine joined to a domain that is federated with Azure Active Directory will automatically use your Windows credentials and no password is required. The execution window will indicate a successful connection to the database followed by “Please press any key to stop”:
14+
3. Running this project on a machine joined to a domain that is federated with Azure Active Directory will automatically use your Windows credentials and no password is required. The execution window will indicate a successful connection to the database followed by “Please press any key to stop”:
1615
![screenshot of application after successful authentication- "press any key to stop"] (/samples/features/security/azure-active-directory-auth/img/integrated-press-any-key-to-stop.png)

0 commit comments

Comments
 (0)