Django Rest Framework Postman Token Authentication -


मैं Django Rest Framework टोकन प्रमाणीकरण का उपयोग कर रहा हूं और अगर मैं curl http: // localhost: 8000 / api / V1 / users /? Format = json -H 'प्राधिकरण: टोकन 0a813fdcd3f8846d6fa376f2592bbc678b0b8e85' सबकुछ ठीक काम करता है।

लेकिन जब मैं पोस्टमन क्रोम क्लाइंट के साथ इसे प्राप्त करने का प्रयास करता हूं, ऐसा कुछ नहीं होता। क्या मैं गलत कर रहा हूं ??

यहां छवि विवरण दर्ज करें

आप प्राधिकरण: टोकन के लिए हेडर सेट कर रहे हैं, जब यह वास्तव में होना चाहिए प्राधिकरण < / code>। शीर्ष लेख वास्तव में बस प्राधिकरण है, लेकिन मान है टोकन [token_string] , जहां [token_string] वह प्राधिकरण टोकन है जिसे आपने प्राप्त किया है।


Comments

Popular posts from this blog

Active Directory Authenticated Proxy Server with Squid or CNTLM -

java - @PluginTarget(Node.class) not registering as neo4j plugin -

java - Can't add JTree to JPanel of a JInternalFrame -