Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jenkinsci/sshd-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.330.vc866a_8389b_58
Choose a base ref
...
head repository: jenkinsci/sshd-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: refs/heads/main
Choose a head ref

Commits on Jun 10, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x from 2555.v3190a_8…

    …a_c60c6 to 3120.v4d898e1e9fc4 (#174)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 10, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    23c9b75 View commit details
  2. chore(deps): bump org.jenkins-ci.plugins:plugin from 4.81 to 4.83 (#175)

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 10, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b98be93 View commit details

Commits on Jun 17, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x from 3120.v4d898e1…

    …e9fc4 to 3135.v6d6c1f6b_3572 (#176)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4b1b878 View commit details

Commits on Jun 21, 2024

  1. Enable Jenkins Security Scan (#177)

    strangelookingnerd authored Jun 21, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    13e1709 View commit details

Commits on Jul 2, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x (#179)

    Bumps [io.jenkins.tools.bom:bom-2.426.x](https://github.com/jenkinsci/bom) from 3135.v6d6c1f6b_3572 to 3157.vb_3e8b_8a_d185d.
    - [Release notes](https://github.com/jenkinsci/bom/releases)
    - [Commits](https://github.com/jenkinsci/bom/commits)
    
    ---
    updated-dependencies:
    - dependency-name: io.jenkins.tools.bom:bom-2.426.x
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 2, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    324a4e9 View commit details

Commits on Jul 8, 2024

  1. chore(deps): bump org.jenkins-ci.plugins:plugin from 4.83 to 4.85 (#181)

    Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 4.83 to 4.85.
    - [Release notes](https://github.com/jenkinsci/plugin-pom/releases)
    - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md)
    - [Commits](jenkinsci/plugin-pom@plugin-4.83...plugin-4.85)
    
    ---
    updated-dependencies:
    - dependency-name: org.jenkins-ci.plugins:plugin
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 8, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    613e838 View commit details
  2. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x (#180)

    Bumps [io.jenkins.tools.bom:bom-2.426.x](https://github.com/jenkinsci/bom) from 3157.vb_3e8b_8a_d185d to 3180.vc1df4d5b_8097.
    - [Release notes](https://github.com/jenkinsci/bom/releases)
    - [Commits](https://github.com/jenkinsci/bom/commits)
    
    ---
    updated-dependencies:
    - dependency-name: io.jenkins.tools.bom:bom-2.426.x
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 8, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a2cd570 View commit details

Commits on Jul 15, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x from 3180.vc1df4d5…

    …b_8097 to 3193.v330d8248d39e (#182)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b0914a2 View commit details

Commits on Jul 22, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.426.x from 3193.v330d824…

    …8d39e to 3208.vb_21177d4b_cd9 (#183)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 22, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9056f93 View commit details

Commits on Aug 6, 2024

  1. Modernize to Jenkins 2.440.3 (#185)

    Co-authored-by: Moderne <team@moderne.io>
    sghill-rewrite and TeamModerne authored Aug 6, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7339fc3 View commit details
  2. chore(deps): bump org.jenkins-ci.plugins:plugin from 4.85 to 4.86 (#184)

    Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 4.85 to 4.86.
    - [Release notes](https://github.com/jenkinsci/plugin-pom/releases)
    - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md)
    - [Commits](jenkinsci/plugin-pom@plugin-4.85...plugin-4.86)
    
    ---
    updated-dependencies:
    - dependency-name: org.jenkins-ci.plugins:plugin
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 6, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8a707cc View commit details

Commits on Sep 3, 2024

  1. chore(deps): bump org.jenkins-ci.plugins:plugin from 4.86 to 4.87 (#189)

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    906f199 View commit details
  2. chore(deps): bump io.jenkins.tools.bom:bom-2.440.x from 3234.v5ca_515…

    …4341ef to 3307.v2769886db_63b_ (#190)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 3, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    d8d1136 View commit details

Commits on Sep 9, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.440.x (#191)

    Bumps [io.jenkins.tools.bom:bom-2.440.x](https://github.com/jenkinsci/bom) from 3307.v2769886db_63b_ to 3334.v18e2a_2f48356.
    - [Release notes](https://github.com/jenkinsci/bom/releases)
    - [Commits](https://github.com/jenkinsci/bom/commits)
    
    ---
    updated-dependencies:
    - dependency-name: io.jenkins.tools.bom:bom-2.440.x
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 9, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    eaba5ac View commit details

Commits on Sep 23, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.440.x from 3334.v18e2a_2…

    …f48356 to 3387.v0f2773fa_3200 (#195)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    bd933e1 View commit details
  2. chore(deps): bump org.jenkins-ci.plugins:plugin from 4.87 to 4.88 (#194)

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Sep 23, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    84c7cce View commit details

Commits on Oct 1, 2024

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.440.x from 3387.v0f2773f…

    …a_3200 to 3413.v0d896b_76a_30d (#196)
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9dfaf77 View commit details

Commits on Jan 14, 2025

  1. Use jenkins.baseline to reduce bom update mistakes (#202)

    strangelookingnerd authored Jan 14, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    a319fc3 View commit details

Commits on Feb 5, 2025

  1. Migrate from EE 8 to EE 9 (#203)

    basil authored Feb 5, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    69c8f4c View commit details

Commits on Feb 6, 2025

  1. chore(deps): bump org.jenkins-ci.plugins:plugin from 5.5 to 5.7 (#205)

    Bumps [org.jenkins-ci.plugins:plugin](https://github.com/jenkinsci/plugin-pom) from 5.5 to 5.7.
    - [Release notes](https://github.com/jenkinsci/plugin-pom/releases)
    - [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md)
    - [Commits](jenkinsci/plugin-pom@plugin-5.5...plugin-5.7)
    
    ---
    updated-dependencies:
    - dependency-name: org.jenkins-ci.plugins:plugin
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 6, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1080103 View commit details

Commits on Feb 10, 2025

  1. chore(deps): bump io.jenkins.tools.bom:bom-2.479.x (#207)

    Bumps [io.jenkins.tools.bom:bom-2.479.x](https://github.com/jenkinsci/bom) from 3850.vb_c5319efa_e29 to 4136.vca_c3202a_7fd1.
    - [Release notes](https://github.com/jenkinsci/bom/releases)
    - [Commits](https://github.com/jenkinsci/bom/commits)
    
    ---
    updated-dependencies:
    - dependency-name: io.jenkins.tools.bom:bom-2.479.x
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Feb 10, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    02d1984 View commit details
  2. Finish a TODO (#208)

    basil authored Feb 10, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3c73d3c View commit details
  3. Migrate from Acegi to Spring Security (#209)

    basil authored Feb 10, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    2bd33c4 View commit details
21 changes: 21 additions & 0 deletions .github/workflows/jenkins-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Jenkins Security Scan

on:
push:
branches:
- main
pull_request:
types: [ opened, synchronize, reopened ]
workflow_dispatch:

permissions:
security-events: write
contents: read
actions: read

jobs:
security-scan:
uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2
with:
java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate.
# java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default.
11 changes: 6 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.81</version>
<version>5.7</version>
<relativePath />
</parent>

@@ -32,16 +32,18 @@
<properties>
<revision>3</revision>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.426.3</jenkins.version>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.426.x</artifactId>
<version>2555.v3190a_8a_c60c6</version>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>4136.vca_c3202a_7fd1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
@@ -60,7 +62,6 @@
<dependency>
<groupId>io.jenkins.plugins</groupId>
<artifactId>eddsa-api</artifactId>
<version>0.3.0-4.v84c6f0f4969e</version>
</dependency>
<dependency>
<groupId>org.jenkins-ci.modules</groupId>
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
import hudson.model.UserProperty;
import hudson.model.UserPropertyDescriptor;
import hudson.model.User;
import hudson.model.userproperty.UserPropertyCategory;
import hudson.util.FormValidation;

import java.io.BufferedReader;
@@ -58,15 +59,9 @@ public String getDisplayName() {
return "SSH Public Keys";
}

// @Override
// public @NonNull UserPropertyCategory getUserPropertyCategory() {
// return UserPropertyCategory.get(UserPropertyCategory.Security.class);
// }

// replace with above method when bumping core to version including:
// https://github.com/jenkinsci/jenkins/pull/7268
public String getUserPropertyCategoryAsString() {
return "security";
@Override
public @NonNull UserPropertyCategory getUserPropertyCategory() {
return UserPropertyCategory.get(UserPropertyCategory.Security.class);
}

public UserProperty newInstance(User user) {
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.model.User;
import jenkins.security.SecurityListener;
import org.acegisecurity.AuthenticationException;
import org.acegisecurity.userdetails.UserDetails;
import org.acegisecurity.userdetails.UsernameNotFoundException;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator;
import org.apache.sshd.server.session.ServerSession;
import org.jenkinsci.main.modules.cli.auth.ssh.PublicKeySignatureWriter;
@@ -41,7 +41,7 @@ public boolean authenticate(String username, PublicKey key, ServerSession sessio
return false;
}

SecurityListener.fireAuthenticated(user.getUserDetailsForImpersonation());
SecurityListener.fireAuthenticated2(user.getUserDetailsForImpersonation2());
return true;
}

@@ -70,7 +70,7 @@ public boolean authenticate(String username, PublicKey key, ServerSession sessio

private @CheckForNull UserDetails verifyUserUsingSecurityRealm(@NonNull User user) {
try {
return user.getUserDetailsForImpersonation();
return user.getUserDetailsForImpersonation2();
} catch (UsernameNotFoundException e) {
LOGGER.log(Level.FINE, e, () -> user.getId() + " is not a real user according to SecurityRealm");
return null;
4 changes: 2 additions & 2 deletions src/main/java/org/jenkinsci/main/modules/sshd/SSHD.java
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@
import org.apache.sshd.server.SshServer;
import org.apache.sshd.server.auth.UserAuthFactory;
import org.jenkinsci.main.modules.instance_identity.InstanceIdentity;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;

/**
* @author Kohsuke Kawaguchi
@@ -240,7 +240,7 @@ public synchronized void stop() throws IOException, InterruptedException {
}

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
public boolean configure(StaplerRequest2 req, JSONObject json) throws FormException {
setPort(new ServerTcpPort(json.getJSONObject("port")).getPort());
return true;
}
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ package org.jenkinsci.main.modules.sshd.PortAdvertiser;

def v = my.endpoint;
if (v!=null)
response.addHeader("X-SSH-Endpoint",v);
response2.addHeader("X-SSH-Endpoint",v);
22 changes: 11 additions & 11 deletions src/test/java/org/jenkinsci/main/modules/cli/auth/ssh/CLITest.java
Original file line number Diff line number Diff line change
@@ -54,13 +54,13 @@
import org.kohsuke.stapler.HttpResponses.HttpResponseException;
import org.kohsuke.stapler.Stapler;
import org.kohsuke.stapler.StaplerProxy;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.StaplerRequest2;
import org.kohsuke.stapler.StaplerResponse2;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
@@ -234,11 +234,11 @@ public static final class NoJenkinsAction extends CrumbExclusion implements Unpr
}

@Override public Object getTarget() {
doDynamic(Stapler.getCurrentRequest(), Stapler.getCurrentResponse());
doDynamic(Stapler.getCurrentRequest2(), Stapler.getCurrentResponse2());
return this;
}

public void doDynamic(StaplerRequest req, StaplerResponse rsp) {
public void doDynamic(StaplerRequest2 req, StaplerResponse2 rsp) {
rsp.setStatus(200);
}

@@ -297,15 +297,15 @@ public static final class CliProxyAction extends CrumbExclusion implements Unpro
}

@Override public Object getTarget() {
throw doDynamic(Stapler.getCurrentRequest(), Stapler.getCurrentResponse());
throw doDynamic(Stapler.getCurrentRequest2(), Stapler.getCurrentResponse2());
}

public HttpResponseException doDynamic(StaplerRequest req, StaplerResponse rsp) {
public HttpResponseException doDynamic(StaplerRequest2 req, StaplerResponse2 rsp) {
final String url = req.getRequestURIWithQueryString().replaceFirst("/cli-proxy", "");
// Custom written redirect so no traces of Jenkins are present in headers
return new HttpResponseException() {
@Override
public void generateResponse(StaplerRequest req, StaplerResponse rsp, Object node) throws IOException, ServletException {
public void generateResponse(StaplerRequest2 req, StaplerResponse2 rsp, Object node) throws IOException, ServletException {
rsp.setHeader("Location", url);
rsp.setContentType("text/html");
rsp.setStatus(HttpURLConnection.HTTP_MOVED_TEMP);
28 changes: 13 additions & 15 deletions src/test/java/org/jenkinsci/main/modules/sshd/SSHDTest.java
Original file line number Diff line number Diff line change
@@ -3,15 +3,14 @@
import hudson.Functions;
import hudson.security.AbstractPasswordBasedSecurityRealm;
import hudson.security.GroupDetails;
import org.acegisecurity.AccountExpiredException;
import org.acegisecurity.AuthenticationException;
import org.acegisecurity.CredentialsExpiredException;
import org.acegisecurity.DisabledException;
import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.LockedException;
import org.acegisecurity.userdetails.User;
import org.acegisecurity.userdetails.UserDetails;
import org.acegisecurity.userdetails.UsernameNotFoundException;
import org.springframework.security.authentication.AccountExpiredException;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.authentication.CredentialsExpiredException;
import org.springframework.security.authentication.DisabledException;
import org.springframework.security.authentication.LockedException;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.apache.sshd.client.SshClient;
import org.apache.sshd.client.future.ConnectFuture;
import org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier;
@@ -26,7 +25,6 @@
import org.junit.Test;
import org.jvnet.hudson.test.Issue;
import org.jvnet.hudson.test.JenkinsRule;
import org.springframework.dao.DataAccessException;

import java.io.IOException;
import java.net.InetSocketAddress;
@@ -154,12 +152,12 @@ private static KeyPair generateKeys(hudson.model.User user) throws NoSuchAlgorit
@Issue("JENKINS-55813")
private static class InvalidUserTypesRealm extends AbstractPasswordBasedSecurityRealm {
@Override
protected UserDetails authenticate(String user, String pass) throws AuthenticationException {
return loadUserByUsername(user);
protected UserDetails authenticate2(String user, String pass) throws AuthenticationException {
return loadUserByUsername2(user);
}

@Override
public UserDetails loadUserByUsername(String user) throws UsernameNotFoundException, DataAccessException {
public UserDetails loadUserByUsername2(String user) throws UsernameNotFoundException {
switch (user) {
case "disabled":
throw new DisabledException(user);
@@ -174,12 +172,12 @@ public UserDetails loadUserByUsername(String user) throws UsernameNotFoundExcept
throw new LockedException(user);

default:
return new User(user, "", true, true, true, true, new GrantedAuthority[0]);
return new User(user, "", true, true, true, true, List.of());
}
}

@Override
public GroupDetails loadGroupByGroupname(String group) throws UsernameNotFoundException, DataAccessException {
public GroupDetails loadGroupByGroupname2(String groupname, boolean fetchMembers) throws UsernameNotFoundException {
throw new UnsupportedOperationException();
}
}