Get request object in class-based View
You can access to it from self.request.user
for example you can do this in your CBV
if self.request.user.is_authenticated():
...
or
context['username'] = self.request.user.username
...
and so on