code: func (c *Context) OAuthProvider() *OAuthProvider {
  
  	service := c.Service()
  	if c.ServiceBaseURL.Host == "" || c.ServiceBaseURL.Host == service.DefaultBaseURL.Host {
  		return service.DefaultOAuthProvider()
  	} else if c.ServiceBaseURL.Host != "" {
  
  		p, _ := findOauthProviderByHost(c.db, c.ServiceBaseURL.Host)
  		if p == nil {
  			p = &OAuthProvider{BaseURL: c.ServiceBaseURL, Service: c.ServiceName}
  		}
  		/*if err != nil {
  			c.Log().WithError(err).WithField("host", c.ServiceBaseURL.Host).Error("Can't get OAuthProvider")
  		}*/
  
  		return p
  	}
  	c.Log().Error("Can't get OAuthProvider – empty ServiceBaseURL")
  
  	return nil
  }
docs: // OAuthProvider details. Useful for services that can be installed on your own side