README.md in onfido-2.1.0 vs README.md in onfido-2.1.1
- old
+ new
@@ -74,11 +74,11 @@
)
```
## Verifying webhooks
-Each webhook endpoint has a secret token, generated automatically and [exposed](https://onfido.com/documentation#register-webhook) in the API. When sending a request, Onfido includes a signature computed using the request body and this token in the `X-SHA2-Signature` header.
+Each webhook endpoint has a secret token, generated automatically and [exposed](https://documentation.onfido.com/#register-webhook) in the API. When sending a request, Onfido includes a signature computed using the request body and this token in the `X-SHA2-Signature` header.
You should compare this provided signature to one you generate yourself with the token to verify that a webhook is a genuine request from Onfido.
```ruby
if Onfido::Webhook.valid?(request.raw_post,
@@ -88,10 +88,10 @@
else
render status: 498, text: "498 Token expired/invalid"
end
```
-Read more at https://onfido.com/documentation#webhook-security
+Read more at https://developers.onfido.com/guide/manual-webhook-signature-verification#webhook-security
## Contributing
1. Fork it ( https://github.com/onfido/onfido-ruby/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)