question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How does it work?

See original GitHub issue

Can someone provide a short example or tutorial to explain how knox works? I have a DRF backend app and many client (web, ios, android). I would like to add some imprivment to my backend to allow the user to have a different token by client. But when I try to login trough api/auth/login/ endpoint, I got a error 401. When I look at the code, the LoginView need the user to be logged in. How is it possible to be logged in in the LoginView (that doesn’t makes sens for me ^^)?

Thank you for your help!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:18

github_iconTop GitHub Comments

3reactions
johnrazcommented, Apr 1, 2019

Hi! Could you be a bit more specific maybe? because the login view does various things and if you want to know it all, I would advise you to read the code (😉), if you have a specific question I would gladly answer. Cheers!

3reactions
alexhalfordcommented, Apr 1, 2019

This thread is really helpful, but just a quick follow-up: If I need to authenticate the user through some method that takes username and password (as described by @BenDevelopment), what does the Knox LoginView actually do?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HowStuffWorks - Learn How Everything Works!
HowStuffWorks explains thousands of topics, ranging from the flu to black holes to conspiracy theories, with video and illustrations so you can learn...
Read more >
"How it works?" vs "How does it work?"
How it works is a phrasal noun. How does it work? is an interrogative sentence (question). The former is commonly used as a...
Read more >
Which is correct: How does it work? or How it works?
How it works is a phrase or a sentence fragment (rather than a complete sentence such as a question). We use it when...
Read more >
How does it work!? on Steam
How does it work!? - Physics game in the genre of puzzle-constructor, performed in 3D graphics. Many levels have been added to the...
Read more >
What is the difference between “How does it work” and “ ...
“How does it work?” is a question. Possible answer, “Like this.” “How it works” is a noun phrase. For instance, “How it works...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found