Forum Discussion
HTTP auth - Calling external API with parameters
- Nov 02, 2023
When using Basic authentication a status code of 200 means that all is okay and no authentication is needed or that authentication already was successful. The server should respond with a status code of 401, until the client has been successfully authenticated. The picture below shows how it should work.
Thank you, We had it coded to reply http 200 for both and had text to differentiate between valid or not. I had the developer throw http 401 - unauthorized for false and redeployed.
All is working well. Thank you for your insight!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com