10

I'm starting to write a native Android client for Stack Overflow, and wondering what exactly is a valid OAuth domain name?

Is it the package name of my app? Or do I have to point it to a server somewhere?

I've already read the post and comments about this on stackoverflow.com, but this is still a bit confusing to me.

1

1 Answer 1

11

The OAuth Domain is either:

  1. A valid domain that you own and control, and that is hosted somewhere the client can reach. Say, for example that you owned unicorns.mil.
    See this answer and this answer for more information on how to configure the app registration settings. (This is "Explicit" or server-side OAuth)

    OR:

  2. Use stackexchange.com. This is a special allowance for apps that do not have their own server ("Implicit" or client-side OAuth).
    See this answer for more information on how to configure the app registration settings.

1
  • Is there are way to use Firebase Auth with the Stackexchange API instead of OAuth? And if I use Firebase for the backend can I still use stackexchange.com for the required OAuth?
    – Edison
    Commented Jun 7, 2021 at 6:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .