modify for omniauth 1.0