Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
003b9dda
Commit
003b9dda
authored
Nov 02, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1207 from erkarl/master
Updated OAuth2 authentication docs.
parents
5e0538fc
f72488d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
docs/api-guide/authentication.md
+6
-0
No files found.
docs/api-guide/authentication.md
View file @
003b9dda
...
@@ -265,6 +265,12 @@ This authentication class depends on the optional [django-oauth2-provider][djang
...
@@ -265,6 +265,12 @@ This authentication class depends on the optional [django-oauth2-provider][djang
'provider.oauth2',
'provider.oauth2',
)
)
Then add
`OAuth2Authentication`
to your global
`DEFAULT_AUTHENTICATION`
setting:
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.OAuth2Authentication',
),
You must also include the following in your root
`urls.py`
module:
You must also include the following in your root
`urls.py`
module:
url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')),
url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment