public static ClientSecrets ToClientSecrets(this ICloudServiceAuth auth) { return(new ClientSecrets { ClientId = auth.ClientId, ClientSecret = auth.ClientSecret }); }
public static bool HaveValues(this ICloudServiceAuth auth) { return(!string.IsNullOrEmpty(auth?.ClientId) && !string.IsNullOrEmpty(auth.ClientSecret)); }