func (o *OIDCConnector) Check() error {
	if o.ID == "" {
		return trace.BadParameter("ID: missing connector id")
	}
	if _, err := url.Parse(o.IssuerURL); err != nil {
		return trace.BadParameter("IssuerURL: bad url: '%v'", o.IssuerURL)
	}
	if _, err := url.Parse(o.RedirectURL); err != nil {
		return trace.BadParameter("RedirectURL: bad url: '%v'", o.RedirectURL)
	}
	if o.ClientID == "" {
		return trace.BadParameter("ClientID: missing client id")
	}
	if o.ClientSecret == "" {
		return trace.BadParameter("ClientSecret: missing client secret")
	}
	return nil
}
// Check returns nil if all parameters are great, err otherwise
Check returns nil if all parameters are great, err otherwise
// Check returns nil if all parameters are great err otherwise
func (o *OIDCConnector) Check() error {
	if o.ID == "" {
		return trace.BadParameter("ID: missing connector id")
	}
	if _, err := url.Parse(o.IssuerURL); err != nil {
		return trace.BadParameter("IssuerURL: bad url: '%v'", o.IssuerURL)
	}
	if _, err := url.Parse(o.RedirectURL); err != nil {
		return trace.BadParameter("RedirectURL: bad url: '%v'", o.RedirectURL)
	}
	if o.ClientID == "" {
		return trace.BadParameter("ClientID: missing client id")
	}
	if o.ClientSecret == "" {
		return trace.BadParameter("ClientSecret: missing client secret")
	}
	return nil
}
func ( o * OIDCConnector ) Check ( ) error { if o . ID == " " { return trace . BadParameter ( " " ) } if _ , err := url . Parse ( o . IssuerURL ) ; err != nil { return trace . BadParameter ( " " , o . IssuerURL ) } if _ , err := url . Parse ( o . RedirectURL ) ; err != nil { return trace . BadParameter ( " " , o . RedirectURL ) } if o . ClientID == " " { return trace . BadParameter ( " " ) } if o . ClientSecret == " " { return trace . BadParameter ( " " ) } return nil }
Check returns nil if all parameters are great, err otherwise
Check returns nil if all parameters are great err otherwise