private static string GrantTypeFromOAuthType(OAuth2Type oAuth2Type)
{
switch (oAuth2Type)
{
case OAuth2Type.Code:
return "authorization_code";
case OAuth2Type.Pin:
return "pin";
case OAuth2Type.Token:
return "token";
default:
throw new ArgumentOutOfRangeException("oAuth2Type");
}
}
}