mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-07-16 16:50:46 +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.
|
// to replace the default OpenIddict entities.
|
||||||
options.UseOpenIddict();
|
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>
|
-> 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:
|
-> 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>();
|
-> options.UseOpenIddict<Guid>();
|
||||||
-> });
|
-> });
|
||||||
-></code></p>
|
-></code></p>
|
||||||
</li>
|
<ul>
|
||||||
<li><p><strong>Create your own authorization controller:</strong>
|
<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.
|
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>
|
Here's an example for the client credentials grant:</p>
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
"output": {
|
"output": {
|
||||||
".html": {
|
".html": {
|
||||||
"relative_path": "guide/getting-started.html",
|
"relative_path": "guide/getting-started.html",
|
||||||
"hash": "x2y3JmMShZP8OKbVIkktGw=="
|
"hash": "PAK5Gf5at4cqxIPy5Io9pg=="
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_incremental": false,
|
"is_incremental": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user