Skip to content

Commit

Permalink
Merge pull request #9656 from mcalmer/issv3-fixes
Browse files Browse the repository at this point in the history
Issv3 fixes
  • Loading branch information
mcalmer authored Jan 21, 2025
2 parents a7af45a + e9afa66 commit ca6c04f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion java/code/src/com/suse/manager/hub/SyncController.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.redhat.rhn.domain.credentials.HubSCCCredentials;

import com.suse.manager.model.hub.IssAccessToken;
import com.suse.manager.model.hub.IssRole;
import com.suse.manager.model.hub.RegisterJson;
import com.suse.manager.model.hub.SCCCredentialsJson;
import com.suse.manager.webui.controllers.ECMAScriptDateAdapter;
Expand Down
9 changes: 6 additions & 3 deletions java/code/src/com/suse/manager/xmlrpc/iss/IssHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public IssHandler(HubManager hubManagerIn) {
* Generate a new access token for ISS for accessing this system
* @param loggedInUser the user logged in. It must have the sat admin role.
* @param fqdn the FQDN of the peripheral/hub that will be using this access token
*
* @return the serialized form of the token
*
* @apidoc.doc Generate a new access token for ISS for accessing this system
Expand Down Expand Up @@ -141,6 +140,7 @@ public int storeAccessToken(User loggedInUser, String fqdn, String token) {
* @param username the name of the user, needed to access the remote server. It must have the sat admin role.
* @param password the password of the user, needed to access the remote server.
* @return 1 on success, exception otherwise
*
* @apidoc.doc Registers automatically a remote server with the specified ISS role.
* @apidoc.param #session_key()
* @apidoc.param #param_desc("string", "fqdn", "the FQDN of the remote server to register ")
Expand All @@ -164,6 +164,7 @@ public int register(User loggedInUser, String fqdn, String role, String username
* @param password the password of the user, needed to access the remote server.
* @param rootCA the root CA certificate, in case it's needed to establish a secure connection
* @return 1 on success, exception otherwise
*
* @apidoc.doc Registers automatically a remote server with the specified ISS role.
* @apidoc.param #session_key()
* @apidoc.param #param_desc("string", "fqdn", "the FQDN of the remote server to register ")
Expand All @@ -172,7 +173,7 @@ public int register(User loggedInUser, String fqdn, String role, String username
* It must have the sat admin role")
* @apidoc.param #param_desc("string", "password", "the password of the user, needed to access the remote
* server")
* @apidoc.param #param_desc("string", "rootCA", the root CA certificate, in case it's needed to establish a secure
* @apidoc.param #param_desc("string", "rootCA", "the root CA certificate, in case it's needed to establish a secure
* connection")
* @apidoc.returntype #return_int_success()
*/
Expand Down Expand Up @@ -222,6 +223,7 @@ public int register(User loggedInUser, String fqdn, String role, String username
* @param role the ISS role of the remote server. Can be either HUB or PERIPHERAL
* @param token the token used to authenticate on the remote server.
* @return 1 on success, exception otherwise
*
* @apidoc.doc Registers a remote server with the specified ISS role using an existing specified access token.
* @apidoc.param #session_key()
* @apidoc.param #param_desc("string", "fqdn", "the FQDN of the remote server to register ")
Expand All @@ -241,12 +243,13 @@ public int registerWithToken(User loggedInUser, String fqdn, String role, String
* @param token the token used to authenticate on the remote server.
* @param rootCA the root CA certificate, in case it's needed to establish a secure connection
* @return 1 on success, exception otherwise
*
* @apidoc.doc Registers a remote server with the specified ISS role using an existing specified access token.
* @apidoc.param #session_key()
* @apidoc.param #param_desc("string", "fqdn", "the FQDN of the remote server to register ")
* @apidoc.param #param_desc("string", "role", "the ISS role of the remote server. Either HUB or PERIPHERAL")
* @apidoc.param #param_desc("string", "token", "the token used to authenticate on the remote server.")
* @apidoc.param #param_desc("string", "rootCA", the root CA certificate, in case it's needed to establish a secure
* @apidoc.param #param_desc("string", "rootCA", "the root CA certificate, in case it's needed to establish a secure
* connection")
* @apidoc.returntype #return_int_success()
*/
Expand Down

0 comments on commit ca6c04f

Please sign in to comment.