From 89f13e4c9e97841b7714993bc6cf0d2983da474b Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Thu, 27 Oct 2022 11:44:01 +0200 Subject: [PATCH] fix: metadata endpoint shouild be public (#284) --- src/main/java/org/jenkinsci/plugins/saml/SamlSecurityRealm.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/saml/SamlSecurityRealm.java b/src/main/java/org/jenkinsci/plugins/saml/SamlSecurityRealm.java index 87736d4e..a3d6751d 100644 --- a/src/main/java/org/jenkinsci/plugins/saml/SamlSecurityRealm.java +++ b/src/main/java/org/jenkinsci/plugins/saml/SamlSecurityRealm.java @@ -593,9 +593,7 @@ static String getSPMetadataFilePath() { * @return the http response. */ @SuppressWarnings("unused") - @RequirePOST public HttpResponse doMetadata(StaplerRequest request, StaplerResponse response) { - Jenkins.get().checkPermission(Jenkins.ADMINISTER); return new SamlSPMetadataWrapper(getSamlPluginConfig(), request, response).get(); }