If you can bear the time delay, IMO the solutions using an intermediate scratchpad (database, file) for communication look preferable to those involvong direct communication with authentication : less to risk getting wrong.