User:Hawk248/sandbox
Assignment
[edit]- Review http://en.wikipedia.org/wiki/Wikipedia:Starting_an_article
- Search Wikipedia to ensure that there is not an existing page on your topic already. If there is a page, get a new topic. Repeat
- Begin the article on your user page
- Include Title, at least three sections with headings, one Wikipedia link, one external link, an image, and at least 5 scholarly or popular press (e.g., newspaper stories, magazines, etc.) references
- The article needs to be at least three to five paragraphs in length
- Conform to style guide (see supporting materials below)
API Security
[edit]Api Security entails authenticating programs or users who are invoking an api.
With ease of API integrations comes the difficult part of ensuring proper AUTHN (authentication) and AUTHZ (authorization). In a multi tenant environment, proper security controls need to be put in place to only allow access on "need to have access basis" based on proper AUTHN and AUTHZ. Appropriate AUTHN schemes enable producers (API's or services) to properly identify consumers (clients or calling programs) and to evaluate their access level (authz). In other words, can a consumer invoke a particular method (business logic) based on credentials presented?
"Interface design flaws are widespread, from the world of crypto processors through sundry embedded systems right through to antivirus software and the operating system itself."[1]
Method of Authentication and Authorization
[edit]Most common methods for authentication and authorization include.
- Static strings: These are like passwords that are provided by API's to consumers.
- Dynamic tokens: These are time based tokens obtained by caller from a authentication service.
- User Delegated Tokens: These are tokens such as OAuth[2] which are granted based on user authentication.
The above methods provide different level of security and ease of integration. Often times, the easiest method of integration also offers weakest security model.
Static Strings
[edit]In static strings method, the API caller or client embeds a string as a token in the request. This method is often referred as basic authentication. "From a security point of view, basic authentication is not very satisfactory. It means sending the user's password over the network in clear text for every single page accessed (unless a secure lower-level protocol, like SSL, is used to encrypt all transactions). Thus the user is very vulnerable
![](http://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Wiki_basicAuth.jpg/220px-Wiki_basicAuth.jpg)
to any packet sniffers on the net."[3]
Dynamic tokens
[edit]When an API is protected a dynamic token, there is a time based nonce inserted into the token. The token as a time to live (TTL) after which the client must acquire a new token. The API method has time check algorithm and if token is expired, the request is forbidden. "An example of such token is JSON Web Token. The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be accepted for processing."[4]
User Delegated Token
[edit]This type of tokens are used in 3-legged system where an application needs to access an API on behalf of a user. Instead of revealing user id and password to the application, a user grants a token which encapsulates users permission for the application to invoke the API.
The OAuth 2.0 authorization framework enables a third-party
The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.[5]
- ^ "API Attacks" (PDF).
- ^ "OAuth 2.0 — OAuth". oauth.net. Retrieved 2015-10-10.
- ^ "A Guide to Web Authentication Alternatives: Part 2". unixpapa.com. Retrieved 2015-10-10.
- ^ John, Bradley,; Nat, Sakimura,; Michael, Jones,. "JSON Web Token (JWT)". tools.ietf.org. Retrieved 2015-10-10.
{{cite web}}
: CS1 maint: extra punctuation (link) CS1 maint: multiple names: authors list (link) - ^ <dick.hardt@gmail.com>, Dick Hardt. "The OAuth 2.0 Authorization Framework". tools.ietf.org. Retrieved 2015-10-11.