The tutorial project is available on GitHub at. ![]() If there are no basic auth credentials or the credentials are invalid then a 401 Unauthorized response is returned. /users - secure route that accepts HTTP GET requests and returns a list of all the users in the application if the HTTP Authorization header contains valid basic authentication credentials.If the username and password are correct then the user details are returned. /users/authenticate - public route that accepts HTTP POST requests containing the username and password in the body. ![]() The example API has just two endpoints/routes to demonstrate authenticating with basic http authentication and accessing a restricted route: In this tutorial we'll go through a simple example of how to implement Basic HTTP authentication in a.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |