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

Method Validate

config/auth.go:639–647  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637}
638
639func (o *AuthOIDCConfig) Validate() error {
640 if !o.DeviceFlow && !o.AuthorizationCodeFlow {
641 return fmt.Errorf("at least one of deviceFlow or authorizationCodeFlow must be enabled")
642 }
643 if o.AuthorizationCodeFlow && o.RedirectURI == "" {
644 return wrap(fmt.Errorf("redirectURI is required if the authorization code flow is enabled"), "redirectURI")
645 }
646 return o.HTTPClientConfiguration.Validate()
647}
648
649type AuthGenericConfig struct {
650 // AuthorizeEndpointURL is the endpoint configuration for the OAuth2 authorization

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.85
ErrorfMethod · 0.65
ValidateMethod · 0.65

Tested by

no test coverage detected