OAuthFlow_OAuth1.0_OAuth2.0_FlickrAPIOAuth1.0_AmadeusOAuth2.0_WithPostman_And_RestAssured
Auth API with Rest Assured:
- Basic - supply Username and password
given().log().all().auth().basic("admin", "admin").
when().get().then().assertThat().statusCode(200);
2. Preemptive
given().log().all().auth().preemptive().basic("admin","admin").
when().get().then().assertThat().statusCode(200);
3.digestive'
RestAssured.baseURI = "https://postman-echo.com";
given().log().all().auth().digest("postman", "password").when().get("/digest-auth").then().log().all().assertThat()
.statusCode(200).and().body("authenticated",equalTo(true));
- form
- Oauth1
- Oauth2
- JWT
Comments
Post a Comment