From nobody Fri Apr 19 15:47:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1526309870723325.6810744174188; Mon, 14 May 2018 07:57:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 80DA23914B0; Mon, 14 May 2018 14:57:49 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 71E1030BE72D; Mon, 14 May 2018 14:57:49 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 61B9A1808841; Mon, 14 May 2018 14:57:48 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w4EEvlFc025728 for ; Mon, 14 May 2018 10:57:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id 30EB498F4F; Mon, 14 May 2018 14:57:47 +0000 (UTC) Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 274C09A422 for ; Mon, 14 May 2018 14:57:43 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1678965996 for ; Mon, 14 May 2018 14:57:33 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id x145-v6so5593532pgx.11 for ; Mon, 14 May 2018 07:57:33 -0700 (PDT) Received: from localhost.localdomain ([112.196.135.149]) by smtp.gmail.com with ESMTPSA id b81-v6sm19296720pfj.56.2018.05.14.07.57.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 07:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=gFO6x63AcgtsuBZrgSEUPvjLIhUbs3pniGLDbfOWpcQ=; b=UpXHGbrUDTgR/evsyECXXmgsn73VaUut7NjxcPjmXsFF8cDKk0jIOXmRjXhGz0LAh+ qJGyCsH2BvFivmn3XY12BnBy19g19/F9DGgKi2KxlMJdqIb1f5xw9Fgapm7ABNEOgTBI 50zQn/k5yMppG5LrIwyJvDb37dtwmwueltXiE5Mb3bfR+fXJX6soJMHooJSwHw2pwmB+ Ta0PcY8X5tUblPs7wnJ6k/6g12BQp01TZs7Qf56UHTykcI+gJS5kkxf+ZacakoroKw+h kc+zhAPXWk/ggh2ZMwbGdtWqwpf8Vcaa5o93xbr06rf8kT4xdbVTirSgapeftgSUGwuL 9AVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gFO6x63AcgtsuBZrgSEUPvjLIhUbs3pniGLDbfOWpcQ=; b=GgwrNvnn1NdnI/WyTvBJlCXbNkntG2pTtV9BDtApDWtf4Vnxdqf+b5E0kGfERSO+xQ Zk1PfDAh2kooa5E0a63DKDGn92srQnD51Z7AVGGdkrghE4qak9JOKEh1wRBXE0DvCuXV 795tKta8G58Pg/Q/dlKa3DRhSjEZec8F2F9BTq+gsfsSDzWnjnEkFgtiTDd/uMmmv1QE /9Nx9WcHX4ldYCyiVDRNn09wC7sxuELaGkUeY0dVw+TTewH7XIFYQCoDaCaM7W7QFQoR 850tlApZ9fpXciQXWOG2Xe8WETk6kQxO+f+YxILAqJVY872LiVdJGxvmb9Rb/KLHGgeW 4pNQ== X-Gm-Message-State: ALKqPweQ1ihiW3jv5A+P1fxvrNV5lg7gd0VSPff+aOxvLA3TbHgd5MMc bCCDLlZEW+qX9fktObc6MqfSjg== X-Google-Smtp-Source: AB8JxZrrwCWgwITRyYULOxWrNb4Tal0dxl+7Jk1XDyfk8rczSuhzElGF/+7PALVp9hS1kPhTQEZoVQ== X-Received: by 2002:a62:3d54:: with SMTP id k81-v6mr10856333pfa.193.1526309851868; Mon, 14 May 2018 07:57:31 -0700 (PDT) From: Shubham Jain To: patchew-devel@redhat.com Date: Mon, 14 May 2018 20:27:17 +0530 Message-Id: <20180514145717.8461-1-shubhamjain7495@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 14 May 2018 14:57:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 14 May 2018 14:57:33 +0000 (UTC) for IP:'74.125.83.66' DOMAIN:'mail-pg0-f66.google.com' HELO:'mail-pg0-f66.google.com' FROM:'shubhamjain7495@gmail.com' RCPT:'' X-RedHat-Spam-Score: 1.531 * (DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS, T_DKIM_INVALID) 74.125.83.66 mail-pg0-f66.google.com 74.125.83.66 mail-pg0-f66.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.27 X-loop: patchew-devel@redhat.com Cc: Shubham Jain Subject: [Patchew-devel] [PATCH] rest: Add Login in api X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Mon, 14 May 2018 14:57:49 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Adding browsable login in api would help in checking the permission level o= f each endpoint for each user visually. --- patchew/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patchew/urls.py b/patchew/urls.py index 08ace07..18cc95c 100644 --- a/patchew/urls.py +++ b/patchew/urls.py @@ -27,11 +27,13 @@ from django.conf.urls import include, url from api.admin import admin_site from django.conf.urls.static import static from django.conf import settings +from rest_framework.authtoken import views =20 urlpatterns =3D [ url(r'^admin/', admin_site.urls), url(r'^api/', include('api.urls')), url(r'^', include('www.urls')), + url(r'^/api/api-auth/', include('rest_framework.urls',namespace=3D'res= t_framework')), ] + static(settings.STATIC_URL, document_root=3Dsettings.STATIC_ROOT) \ + static(settings.MEDIA_URL, --=20 2.14.3 (Apple Git-98) _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel