mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-04-23 15:11:37 +08:00
Update the documentation pages
This commit is contained in:
parent
27eeafed99
commit
4a64d628db
@ -76,7 +76,7 @@
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
<h2 id="ensure-migrations-are-correctly-enabled-for-your-project">Ensure migrations are correctly enabled for your project</h2>
|
<h2 id="ensure-migrations-are-correctly-enabled-for-your-project">Ensure migrations are correctly enabled for your project</h2>
|
||||||
<p><strong>Before migrating to OpenIddict RC2, make sure migrations are already enabled for your application</strong>. If you have a <code>Migrations</code> folder in your application root folder and an <code>__EFMigrationsHistory</code> table in your database, you're good to go.</p>
|
<p><strong>Before migrating to OpenIddict RC2, make sure migrations are already enabled for your application</strong>. If you have a <code>Migrations</code> folder in your application root folder and an <code>__EFMigrationsHistory</code> table in your database, you're good to go.</p>
|
||||||
<p>If you don't have these Entity Framework Core artificats, migrations are likely not enabled. To fix that, add the following entries in your <code>.csproj</code>:</p>
|
<p>If you don't have these Entity Framework Core artifacts, migrations are likely not enabled. To fix that, add the following entries in your <code>.csproj</code>:</p>
|
||||||
<pre><code class="lang-xml"><ItemGroup>
|
<pre><code class="lang-xml"><ItemGroup>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design"
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design"
|
||||||
Version="2.0.0" PrivateAssets="All" />
|
Version="2.0.0" PrivateAssets="All" />
|
||||||
@ -177,7 +177,16 @@
|
|||||||
UpdateOpenIddictTablesAsync(app.ApplicationServices).GetAwaiter().GetResult();
|
UpdateOpenIddictTablesAsync(app.ApplicationServices).GetAwaiter().GetResult();
|
||||||
}
|
}
|
||||||
</code></pre><p>Run your application. Once it's correctly started, stop it and remove the migration script.</p>
|
</code></pre><p>Run your application. Once it's correctly started, stop it and remove the migration script.</p>
|
||||||
<h2 id="optionally-update-your-code-to-grant-applications-the-minimum-required-permissions">Optionally, update your code to grant applications the minimum required permissions</h2>
|
<h2 id="if-your-authorization-server-uses-introspection-make-sure-resources-are-set-in-the-authentication-ticket">If your authorization server uses introspection, make sure resources are set in the authentication ticket</h2>
|
||||||
|
<p><strong>Setting an explicit list of resources is now required to allow client applications to introspect a token.</strong>
|
||||||
|
For that, call <code>ticket.SetResources()</code> with the list of the client identifiers allowed to validate the token. E.g:</p>
|
||||||
|
<pre><code class="lang-csharp">var ticket = new AuthenticationTicket(
|
||||||
|
new ClaimsPrincipal(identity),
|
||||||
|
new AuthenticationProperties(),
|
||||||
|
OpenIdConnectServerDefaults.AuthenticationScheme);
|
||||||
|
|
||||||
|
ticket.SetResources("tracking_api", "marketing_api");
|
||||||
|
</code></pre><h2 id="optionally-update-your-code-to-grant-applications-the-minimum-required-permissions">Optionally, update your code to grant applications the minimum required permissions</h2>
|
||||||
<p>Starting with RC2, OpenIddict includes an optional feature codenamed "app permissions" that allows
|
<p>Starting with RC2, OpenIddict includes an optional feature codenamed "app permissions" that allows
|
||||||
controlling and limiting the OAuth2/OpenID Connect features a client application is able to use.</p>
|
controlling and limiting the OAuth2/OpenID Connect features a client application is able to use.</p>
|
||||||
<p>To learn more about this feature, read the <a href="../features/application-permissions.html">Application permissions documentation</a>.</p>
|
<p>To learn more about this feature, read the <a href="../features/application-permissions.html">Application permissions documentation</a>.</p>
|
||||||
@ -262,11 +271,23 @@ controlling and limiting the OAuth2/OpenID Connect features a client application
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>OpenIddictScopes</td>
|
<td>OpenIddictScopes</td>
|
||||||
|
<td>DisplayName</td>
|
||||||
|
<td>nvarchar(max)</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>OpenIddictScopes</td>
|
||||||
<td>Properties</td>
|
<td>Properties</td>
|
||||||
<td>nvarchar(max)</td>
|
<td>nvarchar(max)</td>
|
||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>OpenIddictScopes</td>
|
||||||
|
<td>Resources</td>
|
||||||
|
<td>nvarchar(max)</td>
|
||||||
|
<td>Yes</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>OpenIddictTokens</td>
|
<td>OpenIddictTokens</td>
|
||||||
<td>Properties</td>
|
<td>Properties</td>
|
||||||
<td>nvarchar(max)</td>
|
<td>nvarchar(max)</td>
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "guide/migration.html",
|
"relative_path": "guide/migration.html",
|
||||||
"hash": "LpaDiniOjh3+v0brkllWeQ=="
|
"hash": "Q+8Q9qt2+kQUAMVTDE5Hqw=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
@ -217,14 +217,14 @@
|
|||||||
"can_incremental": false,
|
"can_incremental": false,
|
||||||
"incrementalPhase": "build"
|
"incrementalPhase": "build"
|
||||||
},
|
},
|
||||||
|
"ManagedReferenceDocumentProcessor": {
|
||||||
|
"can_incremental": false,
|
||||||
|
"incrementalPhase": "build"
|
||||||
|
},
|
||||||
"ResourceDocumentProcessor": {
|
"ResourceDocumentProcessor": {
|
||||||
"can_incremental": false,
|
"can_incremental": false,
|
||||||
"details": "Processor ResourceDocumentProcessor cannot suppport incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.",
|
"details": "Processor ResourceDocumentProcessor cannot suppport incremental build because the processor doesn't implement ISupportIncrementalDocumentProcessor interface.",
|
||||||
"incrementalPhase": "build"
|
"incrementalPhase": "build"
|
||||||
},
|
|
||||||
"ManagedReferenceDocumentProcessor": {
|
|
||||||
"can_incremental": false,
|
|
||||||
"incrementalPhase": "build"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user