this repo has no description

do not redirect when no oidc provider exists

Changed files
+5
cmd
+5
cmd/up.go
··· 680 680 681 681 claims, err := me.extractClaims(r) 682 682 if err != nil && isRoutePrivate(appname, r.URL.Path) { 683 + if me.oidcIssuerUrl == nil { 684 + http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized) 685 + return 686 + } 687 + 683 688 if !errors.Is(err, &oidc.TokenExpiredError{}) { 684 689 http.Redirect(w, r, fmt.Sprintf("https://%s/_smallweb/signin", r.Host), http.StatusTemporaryRedirect) 685 690 return