Django Oauth Toolkit Application Settings

Django Oauth Toolkit docs do not describe the redirect URL, authorization permission type, or client type fields when registering your application.

The tutorial says to set the client type to confidential, enter the password type and leave the uris blank.

What do other options do?

eg. What is open client type and privacy? What do passwords such as passwords, credentials, authorization, implicit do? And what is redirect uris for?

I found sparse information about them, but no actual explanations related to the django recreation map and django oauth tools exist.

+4
source share
1

, Oauth2

:

client Resource Server . Oauth2 client , , . ( javascript, REST API API- Backback ( Resource Server). Facebook- /JS-, , API Facebook . API- client Facebook Resource Server)

:

confidential, public , client_secret . (, AngularJS client_secret, " " , client public.)

:

Oauth2 Authorization Grant Types.

  • :

    client authorization code, authorization code access token. . , client ( Resource-owner password based).

  • :

    public client_type. ​​ client access token .

  • :

    , client Resource Server. API- . ( API- Javascript, client_secret, Implicit ). Facebook Google .. Authorization Grant, API- .

  • :

    . , .

URI:

, Redirect URI's, authorization code Implicit ( Client Credentials, -, , ). URI , Resource Server , access token. , Facebook . developers.facebook.com (, django-oauth-toolkit), Redirect URI.

Redirect URI - . ", Facebook, URI". , Redirect URI - https://your_domain_name.com/token/facebook/, Facebook Redirect URI Oauth2 access token GET, https://your_domain_name.com/token/facebook/?token=some_long_string&some=other_parameters.

+9

All Articles