We are glad that you were able to resolve this. We are posting the answer here for completing this thread.
Resource ID was needed in the auth URL:
This can be obtained from Enterprise Applications:
Also, creating two separate app registrations
It now returns a 200 OK
Thanks for collaboration regarding this.
Regards
Navtej S