相关文章推荐
鼻子大的汤圆  ·  Visual Studio 2017 ...·  4 月前    · 
不要命的帽子  ·  merge into用法详解·  1 月前    · 
威武的茴香  ·  SQL中merge into用法_sql ...·  1 月前    · 
挂过科的葡萄  ·  使用MERGE ...·  1 月前    · 
眉毛粗的乌冬面  ·  Linux shell ...·  2 年前    · 

Update request.auth instead of request.user #76

@ianrodrigues

Description

I was wondering why did you decide to set request.auth instead of request.user during the authentication step here:

https://github.com/vitalik/django-ninja/blob/master/ninja/operation.py#L100

When I intuitively try to access request.user I always get AnonymousUser . I mean, I always saw that other libraries set request.user , and when necessary they set some other request attributes besides user .

Is that really intended? What is the reason for that?

Thanks for your work on this library, by the way. Nice job!