openiddict / openiddict-samples

.NET samples for OpenIddict

Home Page:https://documentation.openiddict.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Assertion Grant Example

cliedeman opened this issue · comments

Is your feature request related to a problem?

Create an Example of assertion grant.
I managed to piece together a working example using these references:

and a fair bit of googling. The stackoverflow answers code samples also don't compile with the latest openiddict. I am willing to contribute this

Describe the solution you'd like

A new example showing assertion grant with google or add it to an existing example

Additional context

I plan to omit the identity token signature validation from the example because you need quite a bit of plumbing to add it. Some more context here - dotnet/aspnetcore#24309

Hey,

Technically, the assertion grant is implemented almost exactly like the password flow in OpenIddict. If we leave the assertion validation part as an exercise, I'm not sure it will be worth having a dedicated sample in this case. Instead, you may want to update the Zirku sample (that currently uses the code flow but can be tweaked to use a custom flow that would work the same way as the assertion grant).

Happy new year!