Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Please read the documentation for <a href="http://hunch.com/developers/v1/docs/auth/" rel="nofollow">Hunch OAuth</a>.</p> <p>Rather than intercepting the form on the backend, send the user directly to</p> <blockquote> <p><a href="http://hunch.com/authorize/v1/?app_id=12345" rel="nofollow">http://hunch.com/authorize/v1/?app_id=12345</a> (providing your own app_id and an optional next parameter).</p> </blockquote> <p>If the user authorizes your application, they will be redirected to the <code>redirect_url</code> registered for your application along with an <code>auth_token_key</code>. For example, an app with a <code>redirect_url</code> of <a href="http://your-domain.com/authorized/" rel="nofollow">http://your-domain.com/authorized/</a> will be redirected to</p> <blockquote> <p><a href="http://your-domain.com/authorized/?auth_token_key=7a1b2c3&amp;auth_sig=941bc415af782a8d93a83c874922ae1b30e92a70" rel="nofollow">http://your-domain.com/authorized/?auth_token_key=7a1b2c3&amp;auth_sig=941bc415af782a8d93a83c874922ae1b30e92a70</a></p> </blockquote> <p>At this point you can exchange the <code>auth_token_key</code> for an <code>auth_token</code>.</p> <p>The <a href="https://github.com/hunch/hunch-sample-app/blob/master/app/views.py" rel="nofollow">Hunch sample app on Github</a> has an example of how this should be done. The <code>authorize</code> function generates a page asking the user to Hunch connect, and the <code>authorized</code> function exchanges the <code>auth_token_key</code> for an <code>auth_token</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload