Skip to content

Commit acf6582

Browse files
authored
Docs: edit headings in Authentication (#8644)
1 parent 5b616c5 commit acf6582

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/api-guide/authentication.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ The `curl` command line tool may be useful for testing token authenticated APIs.
173173

174174
---
175175

176-
#### Generating Tokens
176+
### Generating Tokens
177177

178-
##### By using signals
178+
#### By using signals
179179

180180
If you want every user to have an automatically generated Token, you can simply catch the User's `post_save` signal.
181181

@@ -199,7 +199,7 @@ If you've already created some users, you can generate tokens for all existing u
199199
for user in User.objects.all():
200200
Token.objects.get_or_create(user=user)
201201

202-
##### By exposing an api endpoint
202+
#### By exposing an api endpoint
203203

204204
When using `TokenAuthentication`, you may want to provide a mechanism for clients to obtain a token given the username and password. REST framework provides a built-in view to provide this behaviour. To use it, add the `obtain_auth_token` view to your URLconf:
205205

@@ -248,7 +248,7 @@ And in your `urls.py`:
248248
]
249249

250250

251-
##### With Django admin
251+
#### With Django admin
252252

253253
It is also possible to create Tokens manually through the admin interface. In case you are using a large user base, we recommend that you monkey patch the `TokenAdmin` class customize it to your needs, more specifically by declaring the `user` field as `raw_field`.
254254

@@ -369,7 +369,7 @@ The following third-party packages are also available.
369369

370370
The [Django OAuth Toolkit][django-oauth-toolkit] package provides OAuth 2.0 support and works with Python 3.4+. The package is maintained by [jazzband][jazzband] and uses the excellent [OAuthLib][oauthlib]. The package is well documented, and well supported and is currently our **recommended package for OAuth 2.0 support**.
371371

372-
#### Installation & configuration
372+
### Installation & configuration
373373

374374
Install using `pip`.
375375

@@ -396,7 +396,7 @@ The [Django REST framework OAuth][django-rest-framework-oauth] package provides
396396

397397
This package was previously included directly in the REST framework but is now supported and maintained as a third-party package.
398398

399-
#### Installation & configuration
399+
### Installation & configuration
400400

401401
Install the package using `pip`.
402402

0 commit comments

Comments
 (0)