From 886d0a7f5c4e8a0f2313688053b62e73b6d04aeb Mon Sep 17 00:00:00 2001 From: LandaMm Date: Mon, 2 Jun 2025 20:34:36 +0200 Subject: [PATCH] feat: create middleware endpoint before accessing web ui interface for authorize --- internal/oauth/openid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/oauth/openid.go b/internal/oauth/openid.go index aaa863d..ede2f63 100644 --- a/internal/oauth/openid.go +++ b/internal/oauth/openid.go @@ -21,7 +21,7 @@ func (h *OAuthHandler) OpenIdConfiguration(w http.ResponseWriter, r *http.Reques encoder := json.NewEncoder(w) if err := encoder.Encode(Response{ TokenEndpoint: h.cfg.Jwt.Issuer + "/api/v1/oauth/token", - AuthorizationEndpoint: h.cfg.Jwt.Issuer + "/auth", + AuthorizationEndpoint: h.cfg.Jwt.Issuer + "/api/v1/oauth/authorize", JwksURI: h.cfg.Jwt.Issuer + "/.well-known/jwks.json", Issuer: h.cfg.Jwt.Issuer, EndSessionEndpoint: h.cfg.Jwt.Issuer + "/api/v1/oauth/logout",