Handle HTTP/HTTPS protocol depending on dev env or not
This commit is contained in:
@@ -14,7 +14,8 @@ func (op *OIDCHandler) WellKnownOIDCEndpoint(w http.ResponseWriter, r *http.Requ
|
||||
var (
|
||||
host = r.Host
|
||||
namespace = mux.Vars(r)["namespace"]
|
||||
issuer = fmt.Sprintf("http://%s/%s", host, namespace)
|
||||
protocol = op.Protocol
|
||||
issuer = fmt.Sprintf("%s://%s/%s", protocol, host, namespace)
|
||||
)
|
||||
|
||||
response := map[string]any{
|
||||
|
||||
Reference in New Issue
Block a user