IdentityModel6.0- How to pass object in RequestTokenAsync
As in identityModel3.0, there was method RequestCustomGrantAsync(this TokenClient client, string grantType, string scope = null, object extra = null, CancellationToken cancellationToken = default(CancellationToken))
but in IdentityModel6.0 it changed to RequestTokenAsync(string grantType, Parameters parameters = null, CancellationToken cancellationToken = default).
When Iam upgrading to 6.0 then not able to find the way how to pass object extra in RequestTokenAsync. Can somebody Please help me on below code?
public async Task<TokenResponse> RequestCustomGrantAsync(TokenClient client, string grantType, string scope = null, object extra = null, CancellationToken cancellationToken = default(CancellationToken))
{
var parameters = new Parameters
{
{ "scope", scope }
};
return await client.RequestTokenAsync(grantType,
parameters, cancellationToken);
}