MCPcopy Index your code
hub / github.com/ory/hydra / ValidateDynamicRegistration

Method ValidateDynamicRegistration

client/validator.go:219–234  ·  view source on GitHub ↗
(ctx context.Context, c *Client)

Source from the content-addressed store, hash-verified

217}
218
219func (v *Validator) ValidateDynamicRegistration(ctx context.Context, c *Client) error {
220 if c.Metadata != nil {
221 return errors.WithStack(ErrInvalidClientMetadata.WithHint(`"metadata" cannot be set for dynamic client registration`))
222 }
223 if c.AccessTokenStrategy != "" {
224 return errors.WithStack(herodot.ErrBadRequest.WithReasonf("It is not allowed to choose your own access token strategy."))
225 }
226 if c.SkipConsent {
227 return errors.WithStack(ErrInvalidRequest.WithDescription(`"skip_consent" cannot be set for dynamic client registration`))
228 }
229 if c.SkipLogoutConsent.Bool {
230 return errors.WithStack(ErrInvalidRequest.WithDescription(`"skip_logout_consent" cannot be set for dynamic client registration`))
231 }
232
233 return v.Validate(ctx, c)
234}
235
236func (v *Validator) ValidateSectorIdentifierURL(ctx context.Context, location string, redirectURIs []string) error {
237 l, err := url.Parse(location)

Callers 2

TestValidateIPRangesFunction · 0.95

Calls 3

ValidateMethod · 0.95
WithHintMethod · 0.80
WithDescriptionMethod · 0.80

Tested by 2

TestValidateIPRangesFunction · 0.76