This commit is contained in:
2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions
@@ -0,0 +1,20 @@
using System.Collections.Generic;
using Kreta.Client.KGR.Configuration;
using Kreta.Client.KGR.Constant;
namespace Kreta.Client.KGR.Extension
{
internal static class ClientConfigurationExtension
{
public static Dictionary<string, string> GetTokenRequestParameters(this IKGRClientConfiguration kgrClientConfiguration)
{
return new Dictionary<string, string>
{
{ TokenRequest.GrantType, GrantType.ClientCredentials },
{ TokenRequest.ClientId, kgrClientConfiguration.PrivateClientId },
{ TokenRequest.ClientSecret, kgrClientConfiguration.PrivateClientSecret },
{ TokenRequest.Scope, Scope.Private },
};
}
}
}