authorization tagged requests and articles

Categorized request examples and articles tagged with [authorization] keyword
Curl Request With Bearer Token Authorization Header
An example of a Curl request with Bearer Token Authorization header. The bearer token is sent to the server in the 'Authorization: Bearer {token}' authorization header. The 'Accept: application/json' header tells the server that the client expects a JSON. The server informs the client that it returned a JSON with 'Content-Type: application/json' response header.

GET Request With Bearer Token Authorization Header
An example of sending a GET request with Bearer Token authorization header. The bearer token is sent to the server in the 'Authorization: Bearer {token}' request header. The 'Accept: application/json' header tells the server that the client expects a JSON. The server informs the client that it returned a JSON with 'Content-Type: application/json' response header.

GET Request With Basic Server Authentication
An example of sending a GET request with the basic server authentication credentials. For the basic server authentication, the Authorization: Basic {credentials} header is added to the request. Where the {credentials} is a Base64 encoded string of username and password pair joined by a single colon :

Curl Command With Basic Server Authentication Header
An example of a Curl command with basic auth credentials. The user authentication credentials are passed with --user "login:password" Curl command line parameter. Curl automatically converts the "login:password" pair to the Base64 encoded string and adds the 'Authorization: Basic bG9naW46cGFzc3dvcmQ=' header to the request.

Curl Request With Credentials
Sample Curl request with Origin CORS request header and authorization cookie. In this Curl Request With Credentials example the Origin request header is passed with the -H "Origin: https://example.reqbin.com" command-line parameter and the cookie is passed with the --cookie "authCookie = my_auth_cookie" parameter.

POST JSON String With Basic Authentication
An example of posting JSON string with basic auth credentials. The user authentication credentials are automatically converted to the Base64 encoded string and passed to the server with Authorization: Basic bG9naW46cGFzc3dvcmQ= request header.

CORS Request with Credentials
An example of sending a CORS request with an Origin header and an authorization cookie. In this CORS Request with Credentials example, the Origin is provided with "Origin: https://example.reqbin.com" request header, and the cookie is provided with the "Cookie: authCookie=my_auth_cookie" header.

Curl POST With Basic Authentication
An example of making a POST request with basic authentication credentials using Curl. The basic authentication credentials are passed with the --user "login:password" command-line parameter. The POST data are passed with the -d parameter.

curl -u
A live example of sending Curl command with Basic server authentication header (credentials are provided with -u or --user command-line argument).

HTTP Authentication
HTTP provides a framework for controlling access to pages and API resources by defining several authentication schemes and implementing them.

Basic Authentication Method
Basic access authentication method is used by client to provide a user name and password when making a request

Bearer Authentication Method
A Bearer Authentication method is also known as a token-based method. This is an authentication technique that provides every request to the server with a signed token.

Digest Authentication
Digest authentication is one of the standard methods that the server uses to validate identity information like username and password.

HOBA Authentication
The general idea for developing HTTP Origin-Bound Authentication scheme is to simplify the implementation process.

Mutual Authentication
Mutual Authentication is a solution to a variety of attacks on the net. It minimizes the risk of fraud for online business by validating the legitimacy of both sides and purposes. Mutual authentication is performed before the actual communication through the exchange of digital certificates.

HTTP Security
HTTP Security provides the authentication of the intended website and protection of data privacy and integrity during transmission to secure communications over the network. In general, HTTP Security provides a reasonable assurance that one is protected from malicious interference while communicating on the internet.

API Automated Testing
The automation of the testing process makes it easy and quick; it allows increasing test coverage and frequency, saving money and time while implementing the whole process between development and QA, as well as the debugging in production.