Skip to content

Commit 56b0ca2

Browse files
authored
Add client secret getter for Jelly (#61)
1 parent 16b5dec commit 56b0ca2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/java/org/jenkinsci/plugins/GitLabSecurityRealm.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
import org.gitlab.api.models.GitlabUser;
6161
import org.jfree.util.Log;
6262
import org.kohsuke.stapler.DataBoundConstructor;
63-
import org.kohsuke.stapler.DataBoundSetter;
6463
import org.kohsuke.stapler.Header;
6564
import org.kohsuke.stapler.HttpRedirect;
6665
import org.kohsuke.stapler.HttpResponse;
@@ -258,6 +257,14 @@ public String getClientID() {
258257
return clientID;
259258
}
260259

260+
/**
261+
* Used by jelly
262+
* @return the client secret
263+
*/
264+
public Secret getClientSecret() {
265+
return clientSecret;
266+
}
267+
261268
// "from" is coming from SecurityRealm/loginLink.jelly
262269
public HttpResponse doCommenceLogin(StaplerRequest request, @QueryParameter String from, @Header("Referer") final String referer) throws IOException {
263270
// 2. Requesting authorization :

0 commit comments

Comments
 (0)