Is it possible to use OAuth 2.0 without a redirect server?
<p>I'm trying to create a local Java-based client that interacts with the SurveyMonkey API.</p>

<p>SurveyMonkey requires a long-lived access token using OAuth 2.0, which I'm not very familiar with.</p>

<p>I've been googling this for hours, and I think the answer is no, but I just want to be sure:</p>

<p>Is it possible for me to write a simple Java client that interacts with the SurveyMonkey, <strong>without setting up my own redirect server in some cloud</strong>?</p>

<p>I feel like having my own online service is mandatory to be able to receive the bearer tokens generated by OAuth 2.0. Is it possible that I can't have SurveyMonkey send bearer tokens directly to my client?</p>

<p>And if I were to set up my own custom Servlet somewhere, and use it as a redirect_uri, then the correct flow would be as follows:</p>

<ol>
<li>Java-client request bearer token from SurveyMonkey, with
redirect_uri being my own custom servlet URL. </li>
<li>SurveyMonkey sends token to my custom servlet URL. </li>
<li>Java-client polls custom servlet URL until a token is available?</li>
</ol>

<p>Is this correct?</p>