KaiHoelscher
9 years agoNew Contributor
Can I implement a custom "Authorization Type"?
Hi Support! for our REST service, none of the provided "Authorization Types"[1] can be used. We use a "special String token" in a custom HTTP header field for authorization purposes. So what we ...
- 9 years ago
There's currently no custom interface to create your own authentication methods, but one thing you could do is to set this header in an event handler of type RequestFilter.filterRequest.
Read more about Events here:
http://readyapi.smartbear.com/readyapi/events/start
I suggest that you look for the token as a custom property in the Test case, and if it's not present, get it using some Groovy code and store it in the custom property. Then use the value to set the header on the request.
Kind regards,
Manne Fagerlind, Ready! API Developer