Discourse as an identity provider not working in localhost

I’m pretty sure that it requires https which doesn’t work on local host.