-
Notifications
You must be signed in to change notification settings - Fork 0
/
2011-02-13-api-technology--basic-auth.html
executable file
·28 lines (24 loc) · 2 KB
/
2011-02-13-api-technology--basic-auth.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
---
layout: post
title: 'API Technology - Basic Auth'
url: 'http://apievangelist.com/2011/02/13/api-technology-basic-auth/'
image: ''
---
<img class="c1" src="http://kinlane-productions.s3.amazonaws.com/basic-auth.png" alt="" width="250" align="right" />Basic Auth is a way for a web browser or application to provide credentials in the form of a username and password.
<p></p>Because Basic Auth is integrated into <a class="zem_slink" title="Hypertext Transfer Protocol" rel="wikipedia" href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP protocol</a> it is the easiest way for users to authenticate with a <a class="zem_slink" title="Representational State Transfer" rel="wikipedia" href="http://en.wikipedia.org/wiki/Representational_State_Transfer">RESTful API</a>.
<p></p>Basic Auth is easily integrated, however if <a class="zem_slink" title="Transport Layer Security" rel="wikipedia" href="http://en.wikipedia.org/wiki/Transport_Layer_Security">SSL</a> is not used, the username and password are passed in plain text and can be easily intercepted on the open Internet.
<p></p>OAuth is a much better choice for RESTful API authentication, but Basic Auth is perfectly suited for APIs that are intended for a wider audience and do not give access to sensitive information.
<h6 class="zemanta-related-title c2">
Related articles
</h6>
<ul class="zemanta-article-ul">
<li class="zemanta-article-ul-li">
<a href="http://blog.apievangelist.com/2011/02/10/instapaper-launches-full-api/">Instapaper Launches Full API</a> (apievangelist.com)
</li>
<li class="zemanta-article-ul-li">
<a href="http://blog.programmableweb.com/2011/01/11/google-adds-api-for-url-shortener-and-link-analytics/">Google Adds API For URL Shortener and Link Analytics</a> (programmableweb.com)
</li>
<li class="zemanta-article-ul-li">
<a href="http://blog.apievangelist.com/2011/02/12/api-status-dashboard-with-pingdom/">API Status Dashboard with Pingdom</a> (apievangelist.com)
</li>
</ul>