Building a simple "sally port" circuit

I’m trying to design a simple circuit for a small project I’m working on. The idea is to have 2 magnetic locks, one on the front of a cabinet, and one on the back, and make it so that if I open the front, then the back lock activates, and vice versa.

Basically I want a cabinet where, if one side is open, the other is locked. I could probably do this with an Arduino fairly easily by just checking the value of a sensor, and using that to activate the opposite lock, but I was curious if I should be able to just do it with a simple circuit.

I’d love if someone could draw me a simple diagram to help me figure it out.

I’m planning to use a maglock like this on each side of the cabinet:

https://www.amazon.com/Electric-Magneti … B01FK78BQC

And I think I’d use this sensor to detect the state of the opposite door…

https://www.sparkfun.com/products/13247

Can I do this w/o any microcontroller in the loop?

Two switches would work. Just have each switch close when the door is open to engage the magnet on the opposite side.

I knew I was over thinking this…