OAuthFlow_OAuth1.0_OAuth2.0_FlickrAPIOAuth1.0_AmadeusOAuth2.0_WithPostman_And_RestAssured

 Auth API with Rest Assured:

  1. 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));
  1. form
  2. Oauth1
  3. Oauth2
  4. JWT



Comments

Popular posts from this blog

Implicit and Explicit Waits,FluentWait,PageLoadTimeOut

A Interview Questions- selenium