====test==== Not providing credentials for the both required schemes denies access to a resource. ====spec==== swagger: '2.0' paths: /todos: get: responses: 200: description: OK securityDefinitions: OAuth2: type: oauth2 flow: accessCode authorizationUrl: /oauth/authorize tokenUrl: /oauth/token scopes: read: Grants read access write: Grants write access admin: Grants read and write access to administrative information BasicAuth: type: basic security: - OAuth2: [read, write] BasicAuth: [] ====server==== mock -p 4010 ${document} ====command==== curl -i http://localhost:4010/todos ====expect==== HTTP/1.1 401 Unauthorized www-authenticate: OAuth2,Basic realm="*" {"type":"https://stoplight.io/prism/errors#UNAUTHORIZED","title":"Invalid security scheme used","status":401,"detail":"Your request does not fullfil the security requirements and no HTTP unauthorized response was found in the spec, so Prism is generating this error for you.","headers":{"WWW-Authenticate":"OAuth2,Basic realm=\"*\""}}