Browse Source
Merge pull request #14943 from omer-repo/patch-1
Update OpenIddict-Blazor.md
pull/14945/head
maliming
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
docs/en/Migration-Guides/OpenIddict-Blazor.md
|
|
|
@ -62,7 +62,7 @@ |
|
|
|
typeof(AbpAccountWebOpenIddictModule), |
|
|
|
``` |
|
|
|
|
|
|
|
- In the **MyApplicationBlazorModule.cs** add `PreConfigureServices` like below with your application name as the audience: |
|
|
|
- In the **MyApplicationHostModule.cs** add `PreConfigureServices` like below with your application name as the audience: |
|
|
|
|
|
|
|
```csharp |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
@ -79,7 +79,7 @@ |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
- In the **MyApplicationBlazorModule.cs** `ConfigureServices` method, **replace the method call**: |
|
|
|
- In the **MyApplicationHostModule.cs** `ConfigureServices` method, **replace the method call**: |
|
|
|
|
|
|
|
From `ConfigureAuthentication(context, configuration);` to `ConfigureAuthentication(context);` and update the method as: |
|
|
|
|
|
|
|
@ -90,7 +90,7 @@ |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
- In the **MyApplicationBlazorModule.cs** `OnApplicationInitialization` method, **replace the midware**: |
|
|
|
- In the **MyApplicationHostModule.cs** `OnApplicationInitialization` method, **replace the midware**: |
|
|
|
|
|
|
|
```csharp |
|
|
|
app.UseJwtTokenMiddleware(); |
|
|
|
|