func (i *OIDCAuthRequest) Check() error {
	if i.ConnectorID == "" {
		return trace.BadParameter("ConnectorID: missing value")
	}
	if i.StateToken == "" {
		return trace.BadParameter("StateToken: missing value")
	}
	if len(i.PublicKey) != 0 {
		_, _, _, _, err := ssh.ParseAuthorizedKey(i.PublicKey)
		if err != nil {
			return trace.BadParameter("PublicKey: bad key: %v", err)
		}
		if (i.CertTTL > defaults.MaxCertDuration) || (i.CertTTL < defaults.MinCertDuration) {
			return trace.BadParameter("CertTTL: wrong certificate TTL")
		}
	}

	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 (i *OIDCAuthRequest) Check() error {
	if i.ConnectorID == "" {
		return trace.BadParameter("ConnectorID: missing value")
	}
	if i.StateToken == "" {
		return trace.BadParameter("StateToken: missing value")
	}
	if len(i.PublicKey) != 0 {
		_, _, _, _, err := ssh.ParseAuthorizedKey(i.PublicKey)
		if err != nil {
			return trace.BadParameter("PublicKey: bad key: %v", err)
		}
		if (i.CertTTL > defaults.MaxCertDuration) || (i.CertTTL < defaults.MinCertDuration) {
			return trace.BadParameter("CertTTL: wrong certificate TTL")
		}
	}
	return nil
}
func ( i * OIDCAuthRequest ) Check ( ) error { if i . ConnectorID == " " { return trace . BadParameter ( " " ) } if i . StateToken == " " { return trace . BadParameter ( " " ) } if len ( i . PublicKey ) != 0 { _ , _ , _ , _ , err := ssh . ParseAuthorizedKey ( i . PublicKey ) if err != nil { return trace . BadParameter ( " " , err ) } if ( i . CertTTL > defaults . MaxCertDuration ) || ( i . CertTTL < defaults . MinCertDuration ) { 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