Prism Mock with Basic auth


(Admin) #1

Hello,

I am testing the Prism Mock functionality with a small API spec I wrote and am experiencing a strange behavior. Some of my end points use Basic auth and when I hit those end points without the Authorization header included, I get back a “401 200 OK” response code. Is this a normal behavior from Prism?

Spec: https://pre-employment.docs.stoplight.io/consent-activity/fetchprescreening

Mock:

curl -X GET \
  https://ge3tkmbrhj3gk4ttnfxw4lzrfyydu3lbnfxc44dsnfzw2ltznvwa.prism.stoplight.io/prescreens/6CD8F158-FEED-4CCC-A291-2DCBA39B3EE9

Thanks,
Micah


(Taylor Barnett) #2

Hey @deverus, I think we may need to dig a bit deeper into your Prism setup. Could you message me the project you have the Prism file setup in?