Basic authentication
Basic authentication, or basic access authentication, is a mechanism used to restrict or provide access to specific resources in the server. In a web application, the resources are often web pages, but this mechanism can be used to secure RESTful web services, as well. However, this approach is not common; a different mechanism, based on tokens, is preferred.
When a website is secured using basic authentication, the users need to provide their credentials before requesting the website's pages. The user credentials are merely a simple combination of a username and password that is encoded using a Base64 algorithm, to calculate the value that should be in the Authentication header. This will be used by the server later, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access