Hi,
Welcome to the community!
The documentation you reference is a bit generic, while the guide you’ve pointed to was crafted to guide you through precisely this situation. I would go with the guide.
As mentioned in that guide, the error you quote above is probably caused by the fact that:
your Identity Provider must be aware it should redirect to an HTTPS URL rather than HTTP
HTH,
Ann