Skip to content

Commit

Permalink
Allow both GET and POST requests for /auth/logout API endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbayburt committed Mar 3, 2025
1 parent 531f7e7 commit 0b9aa82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions java/code/src/com/suse/manager/api/HttpApiRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public static Set<String> getUnautenticatedRoutes() {
*/
private void registerAuthEndpoints() {
registrationHelper.addPostRoute(HTTP_API_ROOT + "auth/login", LoginController::apiLogin);
registrationHelper.addPostRoute(HTTP_API_ROOT + "auth/logout", withUser(LoginController::logout));
registrationHelper.addGetRoute(HTTP_API_ROOT + "auth/logout", withUser(LoginController::logout));
}

Expand Down
1 change: 1 addition & 0 deletions java/spacewalk-java.changes.cbbayburt.logout-api-get
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Allow both GET and POST requests for /auth/logout API endpoint

0 comments on commit 0b9aa82

Please sign in to comment.