You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial/tutorial_01.rst
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ You want to make your own :term:`Authorization Server` to issue access tokens to
8
8
Start Your App
9
9
--------------
10
10
During this tutorial you will make an XHR POST from a Heroku deployed app to your localhost instance.
11
-
Since the domain that will originate the request (the app on Heroku) is different than the destination domain (your local instance),
11
+
Since the domain that will originate the request (the app on Heroku) is different than the destination domain (your local instance),
12
12
you will need to install the `django-cors-headers <https://github.com/ottoyiu/django-cors-headers>`_ app.
13
13
These "cross-domain" requests are by default forbidden by web browsers unless you use `CORS <http://en.wikipedia.org/wiki/Cross-origin_resource_sharing>`_.
14
14
@@ -60,29 +60,29 @@ Allow CORS requests from all domains (just for the scope of this tutorial):
60
60
61
61
Include the required hidden input in your login template, `registration/login.html`.
62
62
The ``{{ next }}`` template context variable will be populated with the correct
63
-
redirect value. See the `Django documentation <https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.login>`_
63
+
redirect value. See the `Django documentation <https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.login>`_
64
64
for details on using login templates.
65
65
66
66
.. code-block:: html
67
67
68
68
<inputtype="hidden"name="next"value="{{ next }}" />
69
69
70
-
As a final step, execute syncdb, start the internal server, and login with your credentials.
70
+
As a final step, execute migrate command, start the internal server, and login with your credentials.
71
71
72
72
Create an OAuth2 Client Application
73
73
-----------------------------------
74
-
Before your :term:`Application` can use the :term:`Authorization Server` for user login,
75
-
you must first register the app (also known as the :term:`Client`.) Once registered, your app will be granted access to
74
+
Before your :term:`Application` can use the :term:`Authorization Server` for user login,
75
+
you must first register the app (also known as the :term:`Client`.) Once registered, your app will be granted access to
76
76
the API, subject to approval by its users.
77
77
78
-
Let's register your application.
78
+
Let's register your application.
79
79
80
80
Point your browser to http://localhost:8000/o/applications/ and add an Application instance.
81
81
`Client id` and `Client Secret` are automatically generated, you have to provide the rest of the informations:
82
82
83
83
* `User`: the owner of the Application (e.g. a developer, or the currently logged in user.)
84
84
85
-
* `Redirect uris`: Applications must register at least one redirection endpoint prior to utilizing the
85
+
* `Redirect uris`: Applications must register at least one redirection endpoint prior to utilizing the
86
86
authorization endpoint. The :term:`Authorization Server` will deliver the access token to the client only if the client
87
87
specifies one of the verified redirection uris. For this tutorial, paste verbatim the value
0 commit comments