()
| 77 | } |
| 78 | |
| 79 | func (h *handler) handleOIDCChallenge() error { |
| 80 | redirectURL, err := h.handleOIDCCommon() |
| 81 | if err != nil { |
| 82 | return err |
| 83 | } |
| 84 | |
| 85 | authHeader := fmt.Sprintf("OIDC login=%q", redirectURL) |
| 86 | h.setHeader("WWW-Authenticate", authHeader) |
| 87 | return ErrLoginRequired |
| 88 | } |
| 89 | |
| 90 | func (h *handler) handleOIDCCommon() (redirectURLString string, err error) { |
| 91 | providerName := h.getQuery(requestParamProvider) |
nothing calls this directly
no test coverage detected