课程: API Testing Foundations

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Basic auth in API calls

Basic auth in API calls

- [Instructor] When it comes to authenticating yourself on an API, there are a number of options that we can use. On the authorization tab here in Postman, you can see that Postman provides quite a long list of different auth options. We aren't going to go through all of these, but let's just take a look at a couple of them. We'll start with the basic auth method. And this Postman Echo URL that I'm using here is just a simple service that Postman provides that you can use when learning about different things, in this case about basic auth. So using basic auth is similar to logging into a website. You can see I've got the username as Postman here and the password is set to password. And that's what works for this test URL here. Now Postman, you can see what data is being planned to send to the server when we hit Send. So if I go over to the Headers tab here, you can see that it's automatically put this authorization…

内容