@@ -635,31 +635,31 @@ public class NotifyCheckUrlsCommand(IHttpClientFactory clientFactory)
635
635
` ReplyTo ` can be any URL which by default will have the result POST'ed back to the URL with a JSON
636
636
Content-Type. Typically URLs will contain a reference Id so external clients can correlate a callback
637
637
with the internal process that initiated the job. If the callback API is publicly available you'll
638
- want to use an internal Id that can't be guessed so the callback can't be spoofed, like a Guid , e.g:
638
+ want to use an internal Id that can't be guessed (like a Guid) so the callback can't be spoofed, e.g:
639
639
640
- ` $"https://api.example.com?refId={RefId}" `
640
+ ` $"https://api.example.com/callback ?refId={RefId}" `
641
641
642
642
If needed the callback URL can be customized on how the HTTP Request callback is sent.
643
643
644
644
If the URL contains a space, the text before the space is treated as the HTTP method:
645
645
646
- ` "PUT https://api.example.com" `
646
+ ` "PUT https://api.example.com/callback " `
647
647
648
648
If the auth part contains a colon ` : ` it's treated as Basic Auth:
649
649
650
- ` "username:password@https://api.example.com" `
650
+ ` "username:password@https://api.example.com/callback " `
651
651
652
652
If name starts with ` http. ` sends a HTTP Header
653
653
654
- ` "http.X-API-Key:myApiKey@https://api.example.com" `
654
+ ` "http.X-API-Key:myApiKey@https://api.example.com/callback " `
655
655
656
656
Otherwise it's sent as a Bearer Token:
657
657
658
- ` "myToken123@https://api.example.com" `
658
+ ` "myToken123@https://api.example.com/callback " `
659
659
660
660
Bearer Token or HTTP Headers starting with ` $ ` is substituted with Environment Variable if exists:
661
661
662
- ` "$API_TOKEN@https://api.example.com" `
662
+ ` "$API_TOKEN@https://api.example.com/callback " `
663
663
664
664
When needed headers, passwords and tokens can be URL encoded if they contain any delimiter characters.
665
665
0 commit comments