1.

What do you mean by basic authentication?

Answer»

RESTful web services can be authenticated in many WAYS, but the most BASIC one is basic authentication. For basic authentication, we send a username and password using the HTTP [Authorization] header to enable us to access the resource. Usernames and passwords are encoded using base64 encoding (not encryption) in Basic Authentication. The encoding is not secure SINCE it can be easily decoded.   

Syntax:  

Value = username:password Encoded Value = base64(Value) Authorization Value = Basic <Encoded Value> //Example: Authorization: Basic VGVzdFVzZXI6dGVzdDEyMw== //Decode it'll GIVE back the original username:password UserName:user123


Discussion

No Comment Found