Skip to content

Commit 916e541

Browse files
committed
initial PR with API updates for 0.2.0-preview
1 parent f30a170 commit 916e541

File tree

38 files changed

+76
-76
lines changed

38 files changed

+76
-76
lines changed

1-WebApp-OIDC/1-1-MyOrg/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ cd "1-WebApp-OIDC\1-1-MyOrg"
163163
by this line:
164164
165165
```CSharp
166-
services.AddSignIn(Configuration);
166+
services.AddMicrosoftWebApp(Configuration);
167167
```
168168
169169
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.

1-WebApp-OIDC/1-1-MyOrg/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)
3434
});
3535

3636
// Sign-in users with the Microsoft identity platform
37-
services.AddSignIn(Configuration);
37+
services.AddMicrosoftWebApp(Configuration);
3838

3939
services.AddControllersWithViews(options =>
4040
{

1-WebApp-OIDC/1-2-AnyOrg/README-1-1-to-1-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ The actual sign-in audience (accounts to sign-in) is the lowest set of what is s
5757

5858
In order to restrict users from specific organizations from signing-in to your web app, you'll need to customize your code a bit more to restrict issuers. In Azure AD, the token issuers are the Azure AD tenants which issue tokens to applications.
5959

60-
In the `Startup.cs` file, in the `ConfigureServices` method, after `services.AddSignIn(Configuration)` add some code to validate specific issuers by overriding the `TokenValidationParameters.IssuerValidator` delegate.
60+
In the `Startup.cs` file, in the `ConfigureServices` method, after `services.AddMicrosoftWebApp(Configuration)` add some code to validate specific issuers by overriding the `TokenValidationParameters.IssuerValidator` delegate.
6161

6262
```CSharp
6363
public void ConfigureServices(IServiceCollection services)
6464
{
6565
...
6666
// Sign-in users with the Microsoft identity platform
67-
services.AddSignIn(Configuration, options =>
67+
services.AddMicrosoftWebApp(Configuration, options =>
6868
{
6969
Configuration.Bind("AzureAd", options);
7070
// Restrict users to specific belonging to specific tenants

1-WebApp-OIDC/1-2-AnyOrg/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ cd "1-WebApp-OIDC\1-2-AnyOrg"
155155
by this line:
156156
157157
```CSharp
158-
services.AddSignIn(Configuration);
158+
services.AddMicrosoftWebApp(Configuration);
159159
```
160160
161161
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.
@@ -228,7 +228,7 @@ In the `Startup.cs` file, in the `ConfigureServices` method, after `services.Add
228228
{
229229
...
230230
// Sign-in users with the Microsoft identity platform
231-
services.AddSignIn(Configuration);
231+
services.AddMicrosoftWebApp(Configuration);
232232
233233
// Restrict users to specific belonging to specific tenants
234234
services.Configure<OpenIdConnectOptions>(OpenIdConnectDefaults.AuthenticationScheme, options =>

1-WebApp-OIDC/1-2-AnyOrg/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)
3434
});
3535

3636
// Sign-in users with the Microsoft identity platform
37-
services.AddSignIn(Configuration);
37+
services.AddMicrosoftWebApp(Configuration);
3838

3939
services.AddControllersWithViews(options =>
4040
{

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ In the **appsettings.json** file:
150150
by this line:
151151
152152
```CSharp
153-
services.AddSignIn(Configuration);
153+
services.AddMicrosoftWebApp(Configuration);
154154
```
155155
156156
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.

1-WebApp-OIDC/1-3-AnyOrgOrPersonal/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)
3434
});
3535

3636
// Sign-in users with the Microsoft identity platform
37-
services.AddSignIn(Configuration);
37+
services.AddMicrosoftWebApp(Configuration);
3838

3939
services.AddControllersWithViews(options =>
4040
{

1-WebApp-OIDC/1-4-Sovereign/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ cd "1-WebApp-OIDC\1-4-Sovereign"
121121
by this line:
122122
123123
```CSharp
124-
services.AddSignIn(Configuration);
124+
services.AddMicrosoftWebApp(Configuration);
125125
```
126126
127127
This enables your application to use the Microsoft identity platform endpoint. This endpoint is capable of signing-in users both with their Work and School and Microsoft Personal accounts.

1-WebApp-OIDC/1-4-Sovereign/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void ConfigureServices(IServiceCollection services)
3434
});
3535

3636
// Sign-in users with the Microsoft identity platform
37-
services.AddSignIn(Configuration);
37+
services.AddMicrosoftWebApp(Configuration);
3838

3939
services.AddControllersWithViews(options =>
4040
{

1-WebApp-OIDC/1-5-B2C/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ You can trigger the middleware to send an OpenID Connect sign-in request by deco
125125
Here is the middleware example:
126126

127127
```csharp
128-
services.AddSignIn(Configuration, "AzureAdB2C");
128+
services.AddMicrosoftWebApp(Configuration, "AzureAdB2C");
129129
```
130130

131131
Important things to notice:
132132

133-
- The method `AddSignIn` will configure the authentication based on the `MicrosoftIdentityOptions.cs` options. Feel free to bind more properties on `AzureAdB2C` section on `appsettings.json` if you need to set more options.
133+
- The method `AddMicrosoftWebApp` will configure the authentication based on the `MicrosoftIdentityOptions.cs` options. Feel free to bind more properties on `AzureAdB2C` section on `appsettings.json` if you need to set more options.
134134
- The urls you set for `CallbackPath` and `SignedOutCallbackPath` should be registered on the **Reply Urls** of your application, in [Azure Portal](https://portal.azure.com).
135135

136136
## Next steps

0 commit comments

Comments
 (0)