Skip to content

Commit d4977e1

Browse files
author
John Luo
authored
WsFed instructions update (#18931)
* Update WsFed instructions * It's no longer in settings * Remove redundant image
1 parent 8c3100c commit d4977e1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

aspnetcore/security/authentication/ws-federation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ By default, the new middleware:
7171

7272
![Azure Active Directory: Endpoints](ws-federation/_static/AadFederationMetadataDocument.png)
7373

74-
* Navigate to the new app registration. Click **Settings** > **Properties** and make note of the **App ID URI**. This is the WS-Federation middleware's `Wtrealm`:
74+
* Navigate to the new app registration. Click **Expose an API**. Click Application ID URI **Set** > **Save**. Make note of the **Application ID URI**. This is the WS-Federation middleware's `Wtrealm`:
7575

7676
![Azure Active Directory: App registration properties](ws-federation/_static/AadAppIdUri.png)
7777

28.4 KB
Loading
132 KB
Loading

aspnetcore/security/authentication/ws-federation/samples/Startup21.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public void ConfigureServices(IServiceCollection services)
3939
{
4040
// MetadataAddress represents the Active Directory instance used to authenticate users.
4141
options.MetadataAddress = "https://<ADFS FQDN or AAD tenant>/FederationMetadata/2007-06/FederationMetadata.xml";
42-
42+
4343
// Wtrealm is the app's identifier in the Active Directory instance.
4444
// For ADFS, use the relying party's identifier, its WS-Federation Passive protocol URL:
4545
options.Wtrealm = "https://localhost:44307/";
46-
47-
// For AAD, use the App ID URI from the app registration's Properties blade:
48-
options.Wtrealm = "https://wsfedsample.onmicrosoft.com/bf0e7e6d-056e-4e37-b9a6-2c36797b9f01";
46+
47+
// For AAD, use the Application ID URI from the app registration's Overview blade:
48+
options.Wtrealm = "api://bbd35166-7c13-49f3-8041-9551f2847b69";
4949
});
5050

5151
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);

aspnetcore/security/authentication/ws-federation/samples/Startup31.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public void ConfigureServices(IServiceCollection services)
3838
// For ADFS, use the relying party's identifier, its WS-Federation Passive protocol URL:
3939
options.Wtrealm = "https://localhost:44307/";
4040

41-
// For AAD, use the App ID URI from the app registration's Properties blade:
42-
options.Wtrealm = "https://wsfedsample.onmicrosoft.com/bf0e7e6d-056e-4e37-b9a6-2c36797b9f01";
41+
// For AAD, use the Application ID URI from the app registration's Overview blade:
42+
options.Wtrealm = "api://bbd35166-7c13-49f3-8041-9551f2847b69";
4343
});
4444

4545
services.AddControllersWithViews();

0 commit comments

Comments
 (0)