chain of responsibility pattern right below the address baryou will see box with couple of tabs attached to it one of these tabs is authorization click it and select basic auth from the dropdown box now username and password fields are added to the interface postman allows you to enter the username and password in these boxesand it will then encode the string for you to see what the request object you receive from uwsgi looks likeyou need to change the script you used to return the hello world message to the browser hello_world_request_display py import pprint pp pprint prettyprinter(indent= def application(envstart_response)pp pprint(envstart_response(' ok'[('content-type','text/html')]return [ "hello world "the pprint module included in the python standard library prints data types like dictionaries and lists and is an easy-to-read format it is valuable tool when you are debugging complex datatypeslike the request received from web server when you restart your uwsgi server and send with postman the request including the authorization headersyou will see dictionary printed in the console one of the keys in the dictionary will be http_authorizationwhich is the field containing the word basic followed by spacefollowed by base -encoded string to retrieve the user object from the databasethis string needs to be decoded and then split into the username and password respectively we can do all of this by updating the server application we will begin by obtaining the value of the http_authorization header thenwe will split that value on spacegiving us the word basic and the base -encoded string we will then proceed to decode the string and split on the :which will result in an array with the username at index and the password for the user