@@ -69,7 +69,7 @@ redirect value. Django provides more information on `login templates here
69
69
70
70
<input type =" hidden" name =" next" value =" {{ next }}" />
71
71
72
- As a final step, make a syncdb, start the internal server and login into the admin with your credentials.
72
+ As a final step, make a syncdb, start the internal server and login with your credentials.
73
73
74
74
Create an OAuth2 Client Application
75
75
-----------------------------------
@@ -78,7 +78,7 @@ identified. This operation is usually done manually by a developer, who asks for
78
78
:term: `Authorization Server ` and gets access to some sort of backoffice where she can register her application, which
79
79
will act as a :term: `Client ` (or :term: `Application ` in the Django OAuth Toolkit lingo).
80
80
Let's perform exactly this operation.
81
- In the admin, section ` Oauth2_Provider `, add an Application instance.
81
+ Point your browser to ` http://localhost:8000/o/applications/ ` and add an Application instance.
82
82
`Client id ` and `Client Secret ` are automatically generated, you have to provide the rest of the informations:
83
83
84
84
* `User `: the owner of the Application (tipically a developer), could be the current logged in user.
@@ -116,8 +116,8 @@ to the authorization page.
116
116
117
117
Authorize the application
118
118
+++++++++++++++++++++++++
119
- When the user clicks the link, she is redirected to your (possibly local) :term: `Authorization Server `. If you're not logged in
120
- in your Django admin , at this point you should be prompted for username and password. This is because the authorization
119
+ When the user clicks the link, she is redirected to your (possibly local) :term: `Authorization Server `.
120
+ If you're not logged in , at this point you should be prompted for username and password. This is because the authorization
121
121
page is login protected by django-oauth-toolkit. Login, then you should see the not so cute form user can use to give
122
122
her authorization to the client application. Flag the *Allow * checkbox and click *Authorize *, you will be redirected
123
123
again on the consumer service.
0 commit comments