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
1c4d277f
Commit
1c4d277f
authored
Aug 24, 2017
by
Xavier Ordoquy
Committed by
GitHub
Aug 24, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5362 from ashishnitinpatil/master
~api-clients documentation: installation code fix
parents
36cc8df8
26d4977c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/topics/api-clients.md
+3
-3
No files found.
docs/topics/api-clients.md
View file @
1c4d277f
...
@@ -419,7 +419,7 @@ The `SessionAuthentication` class allows session cookies to provide the user
...
@@ -419,7 +419,7 @@ The `SessionAuthentication` class allows session cookies to provide the user
authentication. You'll want to provide a standard HTML login flow, to allow
authentication. You'll want to provide a standard HTML login flow, to allow
the user to login, and then instantiate a client using session authentication:
the user to login, and then instantiate a client using session authentication:
let auth = coreapi.auth.SessionAuthentication({
let auth =
new
coreapi.auth.SessionAuthentication({
csrfCookieName: 'csrftoken',
csrfCookieName: 'csrftoken',
csrfHeaderName: 'X-CSRFToken'
csrfHeaderName: 'X-CSRFToken'
})
})
...
@@ -433,7 +433,7 @@ requests for unsafe HTTP methods.
...
@@ -433,7 +433,7 @@ requests for unsafe HTTP methods.
The
`TokenAuthentication`
class can be used to support REST framework's built-in
The
`TokenAuthentication`
class can be used to support REST framework's built-in
`TokenAuthentication`
, as well as OAuth and JWT schemes.
`TokenAuthentication`
, as well as OAuth and JWT schemes.
let auth = coreapi.auth.TokenAuthentication({
let auth =
new
coreapi.auth.TokenAuthentication({
scheme: 'JWT'
scheme: 'JWT'
token: '<token>'
token: '<token>'
})
})
...
@@ -471,7 +471,7 @@ For example, using the "Django REST framework JWT" package
...
@@ -471,7 +471,7 @@ For example, using the "Django REST framework JWT" package
The
`BasicAuthentication`
class can be used to support HTTP Basic Authentication.
The
`BasicAuthentication`
class can be used to support HTTP Basic Authentication.
let auth = coreapi.auth.BasicAuthentication({
let auth =
new
coreapi.auth.BasicAuthentication({
username: '<username>',
username: '<username>',
password: '<password>'
password: '<password>'
})
})
...
...
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