private string GetClientAssertion() { var data = revolutApiSettings.Certificate.Certificate; return(JwtSignerHelper.SignData(new JwtPayload { iss = revolutApiSettings.Issuer, sub = revolutApiSettings.AccountId }, data)); }
public void TestJwtSignData_Success() { var config = new ConfigTest(); var data = config.Certificate.Certificate; var result = JwtSignerHelper.SignData(new JwtPayload { iss = config.Issuer, sub = config.AccountId }, data); Assert.NotNull(result); }