Write OAuth2 Provider, Service added getter for config, pass  to Provider, and another fixes