code: def post(self, request):
          
          logout_url = self.redirect_url
  
          if is_authenticated(request.user):
              # Check if a method exists to build the URL to log out the user
              # from the OP.
              logout_from_op = self.get_settings('OIDC_OP_LOGOUT_URL_METHOD', '')
              if logout_from_op:
                  logout_url = import_string(logout_from_op)(request)
  
              # Log out the Django user if they were logged in.
              auth.logout(request)
  
          return HttpResponseRedirect(logout_url)
docs: Log out the user.