ExternalProviderCallback handles the callback endpoint in the external oauth provider flow
(w http.ResponseWriter, r *http.Request)
| 129 | |
| 130 | // ExternalProviderCallback handles the callback endpoint in the external oauth provider flow |
| 131 | func (a *API) ExternalProviderCallback(w http.ResponseWriter, r *http.Request) error { |
| 132 | rurl := a.getExternalRedirectURL(r) |
| 133 | u, err := url.Parse(rurl) |
| 134 | if err != nil { |
| 135 | return err |
| 136 | } |
| 137 | redirectErrors(a.internalExternalProviderCallback, w, r, u) |
| 138 | return nil |
| 139 | } |
| 140 | |
| 141 | func (a *API) handleOAuthCallback(r *http.Request) (*OAuthProviderData, error) { |
| 142 | ctx := r.Context() |
nothing calls this directly
no test coverage detected