It is possible to do it in the header, but what you are doing there is passing them as parameters of the URL. There is a plugin for Google Chrome called Talend API Tester that will allow you to create a URL with an authorization header. This will allow to test your url and see the response.
From: Андрей Метелкин <metylkin.and...@gmail.com> Sent: Thursday, 26 August 2021 8:15 PM To: geoserver-users@lists.sourceforge.net Subject: [Geoserver-users] Passing login and password in the data header Good day! I learned how to make requests directly to the geoserver API and in such a scenario everything works for me. But my task is to make requests through the wso2 api manager. And here I have difficulties. I suspect the problem is that I pass the credentials like this: -u admin: password and wso2 does not pass them to the geoserver. Is it possible to pass credentials in the data header? For example, as in this excerpt: "username=admin&password=geoserver&request=GetMap&service=WMS&version=1.1.1&layers=topp%3Astates&styles I tried doing exactly as in my example, but it didn't work. Thank you in advance! -- С уважением, Метелкин Андрей ________________________________ CONFIDENTIALITY NOTICE AND DISCLAIMER The information in this transmission may be confidential and/or protected by legal professional privilege, and is intended only for the person or persons to whom it is addressed. If you are not such a person, you are warned that any disclosure, copying or dissemination of the information is unauthorised. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission, or its return at our cost. No liability is accepted for any unauthorised use of the information contained in this transmission.
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users