Authenticating with OAuth locally?

Hi all,

Does the Blizzard API support this? I’m curious to know who you guys develop locally if not.

Can the callback URL be a localhost endpoint?

Thanks all!

When you test your stuff locally you can use localhost.

So I’m assuming we can then? We can use http:// localhost as the callback url? Wasn’t sure if it required HTTPS which would require me to use a self signed cert or something. Also, wasn’t sure if they would allow localhost redirects.

Yes, you’ll need a self-signed certificate if you wanna try https locally, however you can use http if you want.

You can have more than one redirect URI on your client credentials, one per line.

As a example this would be a valid redirect for a typical Ruby on Rails + Omniauth callback: http://127.0.0.1:3000/auth/bnet/callback.

Thanks a bunch for the clarity :slight_smile: