Minor changes - reformat code and renamed variables.
Used provider name from config.
Added Yandex oauth provider.