Skip to content

Glossary: Django Beyond the Basics

force_authenticate

Also written: force_authenticate(user=...)

A method on DRF's test client that signs a user in for later requests without a password or token.

Where the book teaches it

Related terms

APITestCase