We would like our device to accept "just works" bonding for the first 2 minutes after power up in order to provide simplicity, but require mitm with oob after this to provide better security since the device is on for extended periods. We have no button and no display but plan to print some oob data on the case. An attacker does not have access to the device so he can't read it.
It seems the pm_sec_params_set function only enables mitm and oob, it doesn't require it. The mechanism to require mitm pairing is to set the read_access and write_access fields for the attributes to SEC_MITM when calling characteristic_add.
How can this be done ?