Region | URL |
|---|---|
AMER | https://amer.api.transit-hub.thomsonreuters.com/webhooks/certificate/public |
APAC | https://emea.api.transit-hub.thomsonreuters.com/webhooks/certificate/public |
EMEA | https://apac.api.transit-hub.thomsonreuters.com/webhooks/certificate/public |
/// <summary> /// Check if the JWT signature is valid. /// </summary> /// <param name="token">JWT sent with request.</param> /// <param name="publicKey">Public key for signature validation.</param> /// <param name="cancellationToken">Cancellation token.</param> /// <returns>Is token valid</returns> public async Task<bool> ValidateJwtSignature(string token, byte[] publicKey, CancellationToken cancellationToken) { var jwtHandler = new JwtSecurityTokenHandler(); var jwt = jwtHandler.ReadJwtToken(token); try { using (var rsa = RSA.Create()) { rsa.ImportRSAPublicKey(publicKey, out _); var validationParameters = new TokenValidationParameters { ValidateAudience = false, ValidateIssuer = false, ValidateIssuerSigningKey = true, IssuerSigningKey = new RsaSecurityKey(rsa), CryptoProviderFactory = new CryptoProviderFactory { CacheSignatureProviders = false } }; SecurityToken validatedToken; jwtHandler.ValidateToken(jwt.RawData, validationParameters, out validatedToken); return true; } } catch (SecurityTokenExpiredException) { return false; } catch (Exception) { return false; } }
Term | Definition |
|---|---|
Channel | A channel represents a domain concept that is used to exchange data between integrating applications. (for example, e-filing) |
Schema | Schema is a contract written by the publisher outlining the details of data they’ll be publishing to a Channel. Publishers can provide multiple schemas on the same channel (think of 1 schema as “create”, 1 schema as “update”, 1 schema as “delete”, for example). Each published message is validated against the relevant schema. |
Publisher | A publisher is an application, service, or system that pushes data to a Channel. |
Subscriber | A subscriber is an application, service, or system that receives data from a Channel. |
Event | A unit of payload that transfers data across a channel (e-filing 52 completed at 2pm on Tuesday) |
Webhook | Endpoints registered against a channel (for example, customer e-filing https callback) |
Action | Independent activities that could occur in the concept (for example, e-filing started, completed) |
Customer | Thomson Reuters’ customers |
Client | Customer’s customer (Firm’s customers) |