We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67ff271 commit dc7bf15Copy full SHA for dc7bf15
request_test.go
@@ -706,6 +706,21 @@ func TestRequestAuthScheme(t *testing.T) {
706
assertEqual(t, tokenValue, resp.Request.Header.Get(hdrAuthorizationKey))
707
})
708
709
+ t.Run("only client level auth token GH959", func(t *testing.T) {
710
+ tokenValue := "004DDB79-6801-4587-B976-F093E6AC44FF"
711
+
712
+ c := dc().
713
+ SetTLSClientConfig(&tls.Config{InsecureSkipVerify: true}).
714
+ SetAuthToken(tokenValue)
715
716
+ resp, err := c.R().
717
+ Get(ts.URL + "/profile")
718
719
+ assertError(t, err)
720
+ assertEqual(t, http.StatusOK, resp.StatusCode())
721
+ assertEqual(t, "Bearer "+tokenValue, resp.Request.Header.Get(hdrAuthorizationKey))
722
+ })
723
724
}
725
726
func TestRequestDigestAuth(t *testing.T) {
0 commit comments