MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / Validate

Method Validate

config/auth.go:658–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

656}
657
658func (o *AuthGenericConfig) Validate() error {
659 if _, err := url.ParseRequestURI(o.AuthorizeEndpointURL); err != nil {
660 return newError("authorizeEndpointURL", "invalid URL: %s", o.AuthorizeEndpointURL)
661 }
662
663 if _, err := url.ParseRequestURI(o.RedirectURI); err != nil {
664 return newError("redirectURI", "invalid URL: %s", o.RedirectURI)
665 }
666
667 if err := o.TokenEndpoint.Validate(); err != nil {
668 return wrap(err, "tokenEndpoint")
669 }
670 return nil
671}
672
673// endregion
674

Callers

nothing calls this directly

Calls 3

newErrorFunction · 0.85
wrapFunction · 0.85
ValidateMethod · 0.65

Tested by

no test coverage detected