Add opauth middleware
Improve opauth
Fix auth success