mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-04-24 18:04:57 +08:00
Update the documentation pages
This commit is contained in:
parent
50fd5de866
commit
4ac33e63bb
@ -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>
|
||||
|
@ -45,7 +45,7 @@
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "guide/getting-started.html",
|
||||
"hash": "x2y3JmMShZP8OKbVIkktGw=="
|
||||
"hash": "PAK5Gf5at4cqxIPy5Io9pg=="
|
||||
}
|
||||
},
|
||||
"is_incremental": false,
|
||||
|
Loading…
Reference in New Issue
Block a user