Skip to content

Commit

Permalink
Move ssh keys to security user page when available (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Jun 8, 2024
1 parent 6590888 commit 668e35e
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ 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";

Check warning on line 69 in src/main/java/org/jenkinsci/main/modules/cli/auth/ssh/UserPropertyImpl.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered line

Line 69 is not covered by tests
}

public UserProperty newInstance(User user) {
return null;
}
Expand Down

0 comments on commit 668e35e

Please sign in to comment.