# HG changeset patch # User Peter Sanchez # Date 1689729287 21600 # Tue Jul 18 19:14:47 2023 -0600 # Node ID abb365e5681558e4ec02ea07e433631ffaecfc44 # Parent 593c0022ae852c71e63559e49d6a5a2e5fd2a011 Add support for RFC 9207 diff --git a/routes.go b/routes.go --- a/routes.go +++ b/routes.go @@ -439,8 +439,10 @@ return s.authorizeError(c, "", state, "server_error", err.Error()) } + origin := gctx.Server.Config.BaseURI() gmap := gobwebs.Map{ "code": code, + "iss": origin, // RFC 9207 } if state != "" { gmap["state"] = state @@ -704,6 +706,7 @@ Doc string `json:"service_documentation"` IntroEndpoint string `json:"introspection_endpoint"` IntroAuth []string `json:"introspection_endpoint_auth_methods_supported"` + ISS bool `json:"authorization_response_iss_parameter_supported"` }{ Issuer: origin, AuthEndpoint: aURL, @@ -714,6 +717,7 @@ Doc: s.config.DocumentationURL, IntroEndpoint: iURL, IntroAuth: []string{"none"}, + ISS: true, } return c.JSON(http.StatusOK, &ret) }