mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-09-20 18:47:54 +08:00
Update the documentation pages
This commit is contained in:
@@ -171,7 +171,9 @@ Here's an example for the client credentials grant, used in machine-to-machi
|
||||
// to replace the default OpenIddict entities.
|
||||
options.UseOpenIddict();
|
||||
});
|
||||
</code></pre><p>-> [!WARNING]
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
<p>-> [!WARNING]
|
||||
-> Important: if you change the default entity primary key (e.g. to <code>int</code> or <code>Guid</code> instead of <code>string</code>), make sure you use the <code>options.ReplaceDefaultEntities<TKey>()</code>
|
||||
-> core extension accepting a <code>TKey</code> generic argument and use the generic <code>options.UseOpenIddict<TKey>()</code> overload to configure EF Core to use the specified type:
|
||||
->
|
||||
@@ -193,7 +195,7 @@ Here's an example for the client credentials grant, used in machine-to-machi
|
||||
-> options.UseOpenIddict<Guid>();
|
||||
-> });
|
||||
-></code></p>
|
||||
</li>
|
||||
<ul>
|
||||
<li><p><strong>Create your own authorization controller:</strong>
|
||||
Implementing a custom authorization controller is required to allow OpenIddict to create tokens based on the identities and claims you provide.
|
||||
Here's an example for the client credentials grant:</p>
|
||||
|
Reference in New Issue
Block a user