Tuesday, November 19, 2019

IdentityModel 4 - Request custom grant

While updating my training material about OIDC I noticed that the documentation of IdentityServer didn’t reflect the latest changes in the IdentityModel library.

The example found in the documentation was still using the old TokenClient together with a RequestCustomGrantAsync() method:

This method no longer exists in version 4 of IdentityModel. Instead you need to use the RequestTokenAsync() extension method on the HttpClient: