I tried it on trial account on erpnext.com and it is working for the subdomain configured there.
I was about to remove that validation, but it is working on erpnext cloud. So I kept it.
- What I found was, If I add the hostname to /etc/hosts it doesn’t timeout on validation.
- It works on appropriately configured domain/hostname I guess.
- frappe.db.set_value your way forward if you just need to test! e.g. https://github.com/frappe/frappe/blob/develop/frappe/tests/ui/test_oauth20.py#L18
The url is required in id_token. Decrypted id_token has the url of issuer. iss, Standard Fields