code: func (o *OAuthProvider) toBson() bson.M {
  	return bson.M{"baseurl": struct {
  		Scheme string
  		Host   string
  		Path   string
  	}{o.BaseURL.Scheme, o.BaseURL.Host, o.BaseURL.Path},
  		"id":      o.ID,
  		"secret":  o.Secret,
  		"service": o.Service}
  
  }
docs: // workaround to save urls as struct