...yep, the user name and password are concatenated with a colon separator and then converted to base-64.
________________________________
From: WEB400 <web400-bounces@xxxxxxxxxxxxxxxxxx> on behalf of Don Brown <DBrown@xxxxxxxxxx>
Sent: 13 July 2019 05:51
To: Web Enabling the IBM i(AS/400 and iSeries)
Subject: Re: [WEB400] Basic authentication to web service and Postman
OK more googling and I think this is starting to make sense.
The user name and password are converted to base64 and the used in the
authorization string in the header.
I will test and see if this works.
Don Brown
From: "Don Brown" <DBrown@xxxxxxxxxx>
To: "web400 (web400@xxxxxxxxxxxxxxxxxx)" <web400@xxxxxxxxxxxxxxxxxx>,
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Date: 13/07/2019 01:04 PM
Subject: [WEB400] Basic authentication to web service and Postman
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxxxxxxxx>
I am hoping someone can assist/advise as I am a little puzzled
We are working on a new project and using Postman to test web service
calls and then this will be coded in RPG and use HTTPAPI.
In Postman we have set up the Authorization as "Basic Auth" and specified
the values for User name and Password
When we "Send" the Get request it work ... Great! But then looking at
the generated HTTP I am confused as it appears the basic authorization has
been converted to an authorization string
Can anyone advise how this conversion is done or why I am not seeing a
User name and Password details in the header ?
GET /sydney/drivers?id=16551 HTTP/1.1
Host: sydney-api.icabbi.com
Authorization: Basic
ZWUyNTU1NmJkM2U5ODhiMTRjM2YyMmFmMDc3MzllODljNWJkY2YwNjo2NzExZmJlZTM5YTNjY2ZjYmI2MjljYzI0M2ZhNzQ0MzQ5MjFhNjNh
User-Agent: PostmanRuntime/7.15.2
Accept: */*
Cache-Control: no-cache
Postman-Token:
7862a43b-82d4-408c-aee3-01ccba1daea0,5cd17cca-f6e3-4c3f-b653-ccbf6267d53d
Host: sydney-api.icabbi.com
Accept-Encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache
Don Brown
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken
reasonable precautions to ensure no viruses are present in this email, MSD
cannot accept responsibility for any loss or damage arising from the use
of this email or attachments.
______________________________________________________________________
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing
list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&data=02%7C01%7C%7C8a1a232d5973449e9ff108d70745642b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636985866922006720&sdata=hFmwLVurzwAw2lirqGJeA1jeLNnHxGqF6PG10UyU92M%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%7C8a1a232d5973449e9ff108d70745642b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636985866922006720&sdata=ej4BaJjrtKBHo4b%2FaUV776h7cCeq3If0FzZWsCsDZ6o%3D&reserved=0.
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
______________________________________________________________________
______________________________________________________________________
This email has been scanned for computer viruses. Although MSD has taken reasonable precautions to ensure no viruses are present in this email, MSD cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
______________________________________________________________________
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.midrange.com%2Fmailman%2Flistinfo%2Fweb400&data=02%7C01%7C%7C8a1a232d5973449e9ff108d70745642b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636985866922006720&sdata=hFmwLVurzwAw2lirqGJeA1jeLNnHxGqF6PG10UyU92M%3D&reserved=0
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
https://nam03.safelinks.protection.outlook.com/?url=https%3A%2F%2Farchive.midrange.com%2Fweb400&data=02%7C01%7C%7C8a1a232d5973449e9ff108d70745642b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636985866922006720&sdata=ej4BaJjrtKBHo4b%2FaUV776h7cCeq3If0FzZWsCsDZ6o%3D&reserved=0.
As an Amazon Associate we earn from qualifying purchases.