(r *http.Request)
| 878 | } |
| 879 | |
| 880 | func (h *Handler) requireDynamicAuth(r *http.Request) *herodot.DefaultError { |
| 881 | if !h.r.Config().PublicAllowDynamicRegistration(r.Context()) { |
| 882 | return herodot.ErrNotFound.WithReason("Dynamic registration is not enabled.") |
| 883 | } |
| 884 | return nil |
| 885 | } |
no test coverage detected