Skip to content

Commit

Permalink
Simplify change
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
  • Loading branch information
kfox1111 committed Dec 15, 2024
1 parent 29bdd98 commit 63d7981
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions support/oidc-discovery-provider/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (h *Handler) serveWellKnown(w http.ResponseWriter, r *http.Request) {
var host string
var path string
var urlScheme string
var keysURL url.URL
var jwksURL url.URL
if h.jwtIssuer != "" {
jwtIssuerURL, _ := url.Parse(h.jwtIssuer)
host = jwtIssuerURL.Host
Expand All @@ -78,7 +78,7 @@ func (h *Handler) serveWellKnown(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}
keysURL = url.URL{
jwksURL = url.URL{
Scheme: tmpURL.Scheme,
Host: tmpURL.Host,
Path: keysPath,
Expand All @@ -88,7 +88,7 @@ func (h *Handler) serveWellKnown(w http.ResponseWriter, r *http.Request) {
if h.allowInsecureScheme && r.TLS == nil && r.URL.Scheme != "https" {
tmpURLScheme = "http"
}
keysURL = url.URL{
jwksURL = url.URL{
Scheme: tmpURLScheme,
Host: r.Host,
Path: "/keys",
Expand Down Expand Up @@ -118,7 +118,7 @@ func (h *Handler) serveWellKnown(w http.ResponseWriter, r *http.Request) {
IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
}{
Issuer: issuerURL.String(),
JWKSURI: keysURL.String(),
JWKSURI: jwksURL.String(),

AuthorizationEndpoint: "",
ResponseTypesSupported: []string{"id_token"},
Expand Down

0 comments on commit 63d7981

Please sign in to comment.