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/index.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,9 @@ OAuth support for Django REST Framework
17
17
18
18
## Overview
19
19
20
-
OAuth support extracted as a third party package directly from the official Django REST Framework implementation. It's built using the [django-oauth-plus][django-oauth-plus] and [django-oauth2-provider][django-oauth2-provider] packages.
20
+
OAuth support extracted as a third party package directly from the official Django REST Framework implementation. It's built to use the [django-oauth-plus][django-oauth-plus], [oauth2][oauth2], and [django-oauth2-provider][django-oauth2-provider] packages.
21
21
22
-
This package provides two authentication classes:[OAuthAuthentication][oauth-authentication] and [OAuth2Authentication][oauth2-authentication] and a [TokenHasReadWriteScope][token-has-read-write-scope] permission class.
22
+
This package provides two authentication classes,[OAuthAuthentication][oauth-authentication] and [OAuth2Authentication][oauth2-authentication], and a [TokenHasReadWriteScope][token-has-read-write-scope] permission class.
23
23
24
24
## Requirements
25
25
@@ -29,12 +29,26 @@ This package provides two authentication classes: [OAuthAuthentication][oauth-au
29
29
30
30
## Installation
31
31
32
-
Install using `pip`...
32
+
Install using `pip`:
33
33
34
34
```bash
35
35
$ pip install djangorestframework-oauth
36
36
```
37
37
38
+
OAuth packages are optional and not installed out of the box. Use of `OAuthAuthentication` requires installation of the `django-oauth-plus` and `oauth2` packages:
39
+
40
+
```bash
41
+
$ pip install django-oauth-plus oauth2
42
+
```
43
+
44
+
Use of `OAuth2Authentication` requires installation of `django-oauth2-provider`:
45
+
46
+
```bash
47
+
$ pip install django-oauth2-provider
48
+
```
49
+
50
+
Use of `TokenHasReadWriteScope` requires installation of either `django-oauth-plus` or `django-oauth2-provider`.
51
+
38
52
## Documentation & Support
39
53
40
54
Full documentation for the project is available at http://jpadilla.github.io/django-rest-framework-oauth/.
@@ -46,7 +60,6 @@ You may also want to follow the [author][jpadilla] on Twitter.
0 commit comments